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
[markdown] Sublime text 4 hangs in some cases #3494
Comments
Appears to be a result of sublimehq/sublime_text#5415 It's triggered by 2 branch patterns (setext-or-paragraph vs. math-blocks) being stacked onto each other. Commenting out the following line fixes the issue, but disables mathml blocks. Packages/Markdown/Markdown.sublime-syntax Line 922 in a6e21c0
|
Fixes sublimehq#3494 The hard-line-breaks context causes deadlock in setext-or-paragraph context maybe caused by in-accurate rewinding or back-and-forth of branches while typing. Same issue was found while working on Markdonw's MathML support. This commit implements the same workaround by just consuming some tokens in 2nd and 3rd branch to avoid ST from trying the 1st one again.
It's actually the mensioned core issue, but the trigger are the hard line break patterns, instead of the math block. |
Thanks for finding that so quickly :) |
Fixes #3494 The hard-line-breaks context causes deadlock in setext-or-paragraph context maybe caused by in-accurate rewinding or back-and-forth of branches while typing. Same issue was found while working on Markdonw's MathML support. This commit implements the same workaround by just consuming some tokens in 2nd and 3rd branch to avoid ST from trying the 1st one again.
What happened?
Sublime Text 4 complety hangs and must be
kill -9
'd to exit. To reproduce, create a filehang.md
with the following:---> Note there are 2 spaces after "test".
hang.md
in Sublime Textmarkdown
syntax highlighting is selected=
to the end of the====
lineThe text was updated successfully, but these errors were encountered: