diff --git a/src/Text/Pandoc/Writers/ICML.hs b/src/Text/Pandoc/Writers/ICML.hs index dcf5acfef..c254fbc58 100644 --- a/src/Text/Pandoc/Writers/ICML.hs +++ b/src/Text/Pandoc/Writers/ICML.hs @@ -621,7 +621,12 @@ imageICML opts style attr (src, _) = do image = inTags True "Image" [("Self","ue6"), ("ItemTransform", scale<>" -"<>hw<>" -"<>hh)] $ vcat [ - inTags True "Properties" [] $ inTags True "Profile" [("type","string")] $ text "$ID/Embedded" + inTags True "Properties" [] $ vcat [ + inTags True "Profile" [("type","string")] $ text "$ID/Embedded" + , selfClosingTag "GraphicBounds" [("Left","0"), ("Top","0") + , ("Right", showFl $ ow*ow / imgWidth) + , ("Bottom", showFl $ oh*oh / imgHeight)] + ] , selfClosingTag "Link" [("Self", "ueb"), ("LinkResourceURI", src')] ] doc = inTags True "CharacterStyleRange" attrs diff --git a/test/command/5541-nesting.md b/test/command/5541-nesting.md index 194b79164..5abe41a9a 100644 --- a/test/command/5541-nesting.md +++ b/test/command/5541-nesting.md @@ -80,6 +80,7 @@ $ID/Embedded + diff --git a/test/command/svg.md b/test/command/svg.md index 26a8213f6..57506570b 100644 --- a/test/command/svg.md +++ b/test/command/svg.md @@ -23,6 +23,7 @@ $ID/Embedded + @@ -56,6 +57,7 @@ $ID/Embedded + @@ -89,6 +91,7 @@ $ID/Embedded + @@ -122,6 +125,7 @@ $ID/Embedded + diff --git a/test/writer.icml b/test/writer.icml index a4b40056a..0601ba494 100644 --- a/test/writer.icml +++ b/test/writer.icml @@ -2800,6 +2800,7 @@ These should not be escaped: \$ \\ \> \[ \{ $ID/Embedded + @@ -2836,6 +2837,7 @@ These should not be escaped: \$ \\ \> \[ \{ $ID/Embedded +