From ec27946869e6829348fc14c6c9eca14af005cdcc Mon Sep 17 00:00:00 2001 From: John MacFarlane <jgm@berkeley.edu> Date: Tue, 19 Apr 2022 13:01:12 -0700 Subject: [PATCH] LaTeX reader: support `\includesvg`. Closes #8027. --- src/Text/Pandoc/Readers/LaTeX.hs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs index bb6c38352..4d3e18679 100644 --- a/src/Text/Pandoc/Readers/LaTeX.hs +++ b/src/Text/Pandoc/Readers/LaTeX.hs @@ -389,6 +389,12 @@ inlineCommands = M.unions mkImage options . unescapeURL . removeDoubleQuotes $ untokenize src) + -- svg + , ("includesvg", do options <- option [] keyvals + src <- braced + mkImage options . + unescapeURL . + removeDoubleQuotes $ untokenize src) -- hyperref , ("url", (\url -> linkWith ("",["uri"],[]) url "" (str url)) . unescapeURL . untokenize <$> bracedUrl)