aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2024-03-26 09:41:55 -0600
committerJohn MacFarlane <[email protected]>2024-03-26 09:41:55 -0600
commit4c16d721d64bd41150dbcf3fddb68e8df6b91ea1 (patch)
treec12480156342c6d6f4fbddf7049182dc20445770
parentdb59b8ed0835078285cab3f5113d22ab5eb21e0f (diff)
ConTeXt writer: fix options order with `\externalfigure`.
The dimensions should come before the class if both are present. See https://github.com/jgm/pandoc/discussions/9604#discussioncomment-8913491
-rw-r--r--src/Text/Pandoc/Writers/ConTeXt.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/ConTeXt.hs b/src/Text/Pandoc/Writers/ConTeXt.hs
index 151fbc106..b3112a429 100644
--- a/src/Text/Pandoc/Writers/ConTeXt.hs
+++ b/src/Text/Pandoc/Writers/ConTeXt.hs
@@ -707,7 +707,7 @@ inlineToConTeXt (Image attr@(_,cls,_) _ (src, _)) = do
if isURI src
then src
else T.pack $ unEscapeString $ T.unpack src
- return $ braces $ "\\externalfigure" <> brackets (literal src') <> dims <> clas
+ return $ braces $ "\\externalfigure" <> brackets (literal src') <> clas <> dims
inlineToConTeXt (Note contents) = do
contents' <- blockListToConTeXt contents
let codeBlock x@(CodeBlock _ _) = [x]