-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Closed
Labels
Description
Standard curly brace escapes in math blocks do not render correctly on github as exemplified by
$\{a,b\}$
rendered as
github requires double escapes like
$\\{a,b\\}$
rendered as
When trying to accept this as input with gfm specified it does not parse it correctly
$ echo '$\\\\{a,b\\\\}$' | pandoc -f gfm -t html
[WARNING] Could not convert TeX math \\{a,b\\}, rendering as TeX:
\\{a,b\\}
^
unexpected control sequence \\
expecting "%", "\\label", "\\tag", "\\nonumber", whitespace or "\\allowbreak"
<p><span class="math inline">$\\{a,b\\}$</span></p>
$ pandoc --version
pandoc 3.6.3
Features: +server +lua
Scripting engine: Lua 5.4