From b98a05d604ab4353c2e684beecf669b182d88906 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 24 Mar 2017 16:23:49 +0100 Subject: LaTeX reader: be more picky about beamer angle arguments. We now only allow them if they contain only numbers, spaces, `-`, and `,`. --- src/Text/Pandoc/Readers/LaTeX.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs index ae441a387..0b34be2a6 100644 --- a/src/Text/Pandoc/Readers/LaTeX.hs +++ b/src/Text/Pandoc/Readers/LaTeX.hs @@ -948,7 +948,7 @@ skipopts = skipMany rawopt rawangle :: PandocMonad m => LP m () rawangle = try $ do char '<' - skipMany (noneOf ">") + skipMany (oneOf "0123456789,- \t") char '>' return () -- cgit v1.2.3