LaTeX reader: support \includesvg.

Closes #8027.
This commit is contained in:
John MacFarlane 2022-04-19 13:01:12 -07:00
parent 6dc692bc5f
commit ec27946869

View file

@ -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)