diff options
| author | John MacFarlane <[email protected]> | 2024-03-26 09:41:55 -0600 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2024-03-26 09:41:55 -0600 |
| commit | 4c16d721d64bd41150dbcf3fddb68e8df6b91ea1 (patch) | |
| tree | c12480156342c6d6f4fbddf7049182dc20445770 | |
| parent | db59b8ed0835078285cab3f5113d22ab5eb21e0f (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.hs | 2 |
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] |
