You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I guess the issue is with pulldown-cmark-to-cmark?
Edit: I now realized \frac12 = x and \\frac12 = x are equivalent as far as commonmark is concerned. So there's not really a problem here. I was trying to use the output of pulldown-cmark-to-cmark as input for a markdown parser that supports math. With the above example, the additional backslash then distorted the math rendering. But while this particular issue might be fixed by not adding an additional backslash, this would just lead to other cases where math is not rendered as intended (e.g. explicit latex line breaks \\ at the start of a line in a .md file?). So I'm closing this for now. A proper fix will probably have to wait until pulldown-cmark/pulldown-cmark#6 is resolved.
The text was updated successfully, but these errors were encountered:
For this
.md
fileonly the first line is correctly recovered by
stupicat
.The second one gets a spurious backslash
This always seems to happen when the backslash is at the start of a line.
pulldown-cmark -e
looks good to meSo I guess the issue is with
pulldown-cmark-to-cmark
?Edit: I now realized
\frac12 = x
and\\frac12 = x
are equivalent as far as commonmark is concerned. So there's not really a problem here. I was trying to use the output ofpulldown-cmark-to-cmark
as input for a markdown parser that supports math. With the above example, the additional backslash then distorted the math rendering. But while this particular issue might be fixed by not adding an additional backslash, this would just lead to other cases where math is not rendered as intended (e.g. explicit latex line breaks\\
at the start of a line in a.md
file?). So I'm closing this for now. A proper fix will probably have to wait until pulldown-cmark/pulldown-cmark#6 is resolved.The text was updated successfully, but these errors were encountered: