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.
This commit is contained in:
John MacFarlane
2017-05-25 22:48:27 +02:00
parent 708973a33a
commit cb7b0a6985
5 changed files with 69 additions and 42 deletions
+12
View File
@@ -0,0 +1,12 @@
```
% pandoc -fmarkdown-implicit_figures
![image](lalune.jpg){height=2em}
^D
<p><img src="lalune.jpg" alt="image" style="height:2em" /></p>
```
```
% pandoc -fmarkdown-implicit_figures -t latex
![image](lalune.jpg){height=2em}
^D
\includegraphics[height=2em]{lalune.jpg}
```