mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-21 05:43:39 +08:00
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:
@@ -0,0 +1,12 @@
|
||||
```
|
||||
% pandoc -fmarkdown-implicit_figures
|
||||
{height=2em}
|
||||
^D
|
||||
<p><img src="lalune.jpg" alt="image" style="height:2em" /></p>
|
||||
```
|
||||
```
|
||||
% pandoc -fmarkdown-implicit_figures -t latex
|
||||
{height=2em}
|
||||
^D
|
||||
\includegraphics[height=2em]{lalune.jpg}
|
||||
```
|
||||
Reference in New Issue
Block a user