aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2026-01-08 11:41:35 +0100
committerJohn MacFarlane <[email protected]>2026-01-08 11:41:35 +0100
commit8123be654d6ece208df32afc26b4fe1629e78ffd (patch)
tree5537f0f037340241fddbcd76e57b81059086a4ac /test
parent6c28eadd6c04a60d0a12efaf864dea1a6b2f2b72 (diff)
Markdown writer: Allow display math to start/end with space.
This reverts to earlier < 3.7 behavior. Closes #11384.
Diffstat (limited to 'test')
-rw-r--r--test/command/11384.md17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/command/11384.md b/test/command/11384.md
new file mode 100644
index 000000000..853068799
--- /dev/null
+++ b/test/command/11384.md
@@ -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$
+```