Closed
Description
Explain the problem.
The typst
writer doesn't automatically convert unitless dimensions to inches, but Typst doesn't like unitless dimensions. This behavior is inconsistent with (eg) the latex
writer:
$ pandoc -f markdown -t typst
{width=640 height=480}
^D
#box(image("./foo.png", height: 480, width: 640))
$ pandoc -f markdown -t latex
{width=640 height=480}
^D
\includegraphics[width=6.66667in,height=5in]{./foo.png}
Pandoc version?
I used 3.2 and didn't see anything relevant on the 3.2.1 changelog (still compiling 3.2.1 locally...):
$ pandoc --version
pandoc 3.2
Features: +server +lua
Scripting engine: Lua 5.4
User data directory: /Users/cscheid/.local/share/pandoc
Copyright (C) 2006-2024 John MacFarlane. Web: https://pandoc.org
This is free software; see the source for copying conditions. There is no
warranty, not even for merchantability or fitness for a particular purpose.