From cb7b0a69859cbf838519c5ad5f35d40ffd4f4246 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 25 May 2017 22:48:27 +0200 Subject: Allow em for image height/width in HTML, LaTeX. - Export `inEm` from ImageSize [API change]. - Change `showFl` and `show` instance for `Dimension` so extra decimal places are omitted. - Added `Em` as a constructor of `Dimension` [API change]. - Allow `em`, `cm`, `in` to pass through without conversion in HTML, LaTeX. Closes #3450. --- test/command/3450.md | 12 ++++++++++++ test/command/svg.md | 48 ++++++++++++++++++++++++------------------------ test/writer.icml | 24 ++++++++++++------------ 3 files changed, 48 insertions(+), 36 deletions(-) create mode 100644 test/command/3450.md (limited to 'test') diff --git a/test/command/3450.md b/test/command/3450.md new file mode 100644 index 000000000..8759aa0c1 --- /dev/null +++ b/test/command/3450.md @@ -0,0 +1,12 @@ +``` +% pandoc -fmarkdown-implicit_figures +![image](lalune.jpg){height=2em} +^D +

image

+``` +``` +% pandoc -fmarkdown-implicit_figures -t latex +![image](lalune.jpg){height=2em} +^D +\includegraphics[height=2em]{lalune.jpg} +``` diff --git a/test/command/svg.md b/test/command/svg.md index 36ca2fdb7..b48745f9a 100644 --- a/test/command/svg.md +++ b/test/command/svg.md @@ -5,20 +5,20 @@ [warning] Could not determine image size for 'command/corrupt.svg': could not determine image type - + - - - - + + + + - + $ID/Embedded @@ -38,20 +38,20 @@ [warning] Could not determine image size for 'command/SVG_logo.svg': could not determine SVG size - + - - - - + + + + - + $ID/Embedded @@ -71,20 +71,20 @@ [warning] Could not determine image size for 'command/SVG_logo-without-xml-declaration.svg': could not determine SVG size - + - - - - + + + + - + $ID/Embedded @@ -104,20 +104,20 @@ ^D - + - - - - + + + + - + $ID/Embedded diff --git a/test/writer.icml b/test/writer.icml index c39915120..6e070e264 100644 --- a/test/writer.icml +++ b/test/writer.icml @@ -2833,20 +2833,20 @@ These should not be escaped: \$ \\ \> \[ \{
- + - - - - + + + + - + $ID/Embedded @@ -2869,20 +2869,20 @@ These should not be escaped: \$ \\ \> \[ \{ Here is a movie - + - - - - + + + + - + $ID/Embedded -- cgit v1.2.3