summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2022-04-19 13:01:12 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2022-04-19 13:01:12 -0700
commitec27946869e6829348fc14c6c9eca14af005cdcc (patch)
tree95bdee367fa6f3c70a9ac6b8a1ad0f7ccfbd8620 /src
parent6dc692bc5ffc6f6acc3a4222490202cc66f0726f (diff)
LaTeX reader: support `\includesvg`.
Closes #8027.
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Readers/LaTeX.hs6
1 files changed, 6 insertions, 0 deletions
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)