-
Notifications
You must be signed in to change notification settings - Fork 327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Equation cannot support pandoc-eqnos or pandoc-crossref #862
Comments
Duplicate of #194 |
Let me briefly explain what happens behind the scene:
Thus, you're right; the parsing is changed when our extension is enabled. In your example, I understand that this design breaks your experience. I'm sorry to say that we are hesitant. Changing it is complex, and will be a breaking change. #839 (comment) We are still collecting user feedback. |
Thanks for the explanation @Lemmingh (and obviously, thanks @yzhang-gh for creating this extension). Following your explanations, I looked around at the options and found that setting This is absolutely fine with my use case, as it allows me to use the editing features of your extension with MPE and pandoc to render the preview. As I saw that MPE provides the option to set custom math block delimiters, maybe it would be possible to provide a setting for your extension to allow arbitrary delimiters ? "markdown-preview-enhanced.mathBlockDelimiters": [
[
"$$",
"$${#eq:*}"
]
] Maybe it is too complex to implement, it is only something that crossed my mind. |
Aha, it makes sense as that option only disables
Thanks. I'm not very sure but it doesn't seem to be an easy thing. |
Problem
Problematic behavior
Using pandoc pandoc-crossref or pandoc-eqnos equation identifiers breaks markdown parsing, as shown in the screenshot below. The outline and code folding are also broken in the same way (Title 2 is not considered a header).
Syntax highlighting is correct.
VSCode with Markdown All in One
Possibly related to #346 Equation identifier using pandoc-eqnos breaks syntax highlighting.
Expected behavior
Markdown Preview Enhanced (MPE) default renderer or with pandoc work as expected, as shown in the two screenshots below:
MPE, Pandoc renderer and --filter=pandoc-crossref filter
MPE, default renderer
Furthermore, VSCode without the extension also exhibits the expected behavior:
VSCode no Markdown All in One
Environment
How to reproduce
The previous screenshots are the results of the following snippet:
The text was updated successfully, but these errors were encountered: