mirror of
https://github.com/jgm/pandoc.git
synced 2026-10-24 12:33:19 +08:00
LaTeX reader: Use label instead of data-label for label in caption.
See d441e656db, #3639.
This commit is contained in:
@@ -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:")]]
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user