aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2025-03-22 10:30:16 -0700
committerJohn MacFarlane <[email protected]>2025-03-22 10:30:16 -0700
commit4ab4c62de38372def66b07cfc8f75518a599d249 (patch)
tree92bb51ad522cf862462e9b83772a2453e5f8414f /test
parent59fb9c40de5cdb3f5842c5519c88cb1175b757d8 (diff)
Commonmark Reader: handle GFM math irregularity with braces.
In GFM, you need to use `\\{` rather than `\{` for a literal brace. Closes #10631.
Diffstat (limited to 'test')
-rw-r--r--test/command/10631.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/command/10631.md b/test/command/10631.md
new file mode 100644
index 000000000..7eea7a9d2
--- /dev/null
+++ b/test/command/10631.md
@@ -0,0 +1,8 @@
+GFM has funny treatment of escaped braces, requiring `\\{` instead of `\{`.
+
+```
+% pandoc -f gfm -t markdown
+$\\{x,y\\}$
+^D
+$\{x,y\}$
+```