Files
John MacFarlane 8123be654d Markdown writer: Allow display math to start/end with space.
This reverts to earlier < 3.7 behavior.
Closes #11384.
2026-01-08 11:41:35 +01:00

243 B

% pandoc -t markdown -f native
[ Para [ Math DisplayMath "\ne = mc^2\n" ] ]
^D
$$
e = mc^2
$$

But we need to collapse spaces around inline math:

% pandoc -t markdown -f native
[ Para [ Math InlineMath "\ne=mc\n" ]]
^D
$e=mc$