mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-17 17:39:54 +08:00
Markdown writer: Allow display math to start/end with space.
This reverts to earlier < 3.7 behavior. Closes #11384.
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
```
|
||||
% 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$
|
||||
```
|
||||
Reference in New Issue
Block a user