LaTeX reader: Use label
instead of data-label
for label in caption.
See d441e656db
, #3639.
This commit is contained in:
parent
db55f7c1b2
commit
09b7df472d
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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:")]]
|
||||
```
|
||||
|
|
Loading…
Add table
Reference in a new issue