1193c1a505
Previously both needed to be specified (unless the image was being resized to be smaller than its original size). If height but not width is specified, we now set width to textwidth (and similarly if width but not height is specified). Since we have keepaspectratio, this yields the desired result.
292 B
292 B
% 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[width=\textwidth,height=2em]{lalune.jpg}