LaTeX reader: Use label instead of data-label for label in caption.

See d441e656db, #3639.
This commit is contained in:
John MacFarlane 2017-08-09 09:14:52 -07:00
parent db55f7c1b2
commit 09b7df472d
2 changed files with 2 additions and 2 deletions

View file

@ -1632,7 +1632,7 @@ setCaption = do
try $ spaces >> controlSeq "label" >> (Just <$> tok)
let ils' = case mblabel of
Just lab -> ils <> spanWith
("",[],[("data-label", stringify lab)]) mempty
("",[],[("label", stringify lab)]) mempty
Nothing -> ils
updateState $ \st -> st{ sCaption = Just ils' }
return mempty

View file

@ -7,5 +7,5 @@
\label{fig:setminus}
\end{figure}
^D
[Para [Image ("",[],[("width","80%")]) [Str "Set",Space,Str "subtraction",Span ("",[],[("data-label","fig:setminus")]) []] ("setminus.png","fig:")]]
[Para [Image ("",[],[("width","80%")]) [Str "Set",Space,Str "subtraction",Span ("",[],[("label","fig:setminus")]) []] ("setminus.png","fig:")]]
```