From 09b7df472dbc171e6130090dfec0f7b71d1d955e Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Wed, 9 Aug 2017 09:14:52 -0700 Subject: LaTeX reader: Use `label` instead of `data-label` for label in caption. See d441e656db576f266c4866e65ff9e4705d376381, #3639. --- src/Text/Pandoc/Readers/LaTeX.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Text') diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs index e51f797af..0f0e71b93 100644 --- a/src/Text/Pandoc/Readers/LaTeX.hs +++ b/src/Text/Pandoc/Readers/LaTeX.hs @@ -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 -- cgit v1.2.3