-
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
Editor highlighting for Markdown italics do not match rendered brew #852
Comments
Is this a bug in markdown, or a bug in whatever is used to style and format the brew code (which is markdown code)? This appears in the editing pane, but everything is OK in the display pane. The bug seems to be triggered by the space in front of the terminating bold marker, not the space-or-lack after it. This brew code:
Looks like this in the editor:
Same thing happens with *italics* Looks like a problem with the |
codemirror may very well have some updates that fix this problem. I know a lot of packages have fallen out of date and it might be time to start going through those and making sure updating those isn't going to break stuff. |
I submitted a bug report to Codemirror. This is indeed on their side. |
The was a recent bump of codemirror, and now the test cases above are slightly improved but not fixed. |
Link to the bug report I submitted codemirror/codemirror5#6264 Seems like this particular behavior is actually correct according to the Markdown specs. It is actually our out-of-date that is rendering invalid styling (and even Github is still getting it wrong in a few cases). Once we update the Marked.js library for us in the new render pipeline, the Markdown with spaces between asterisks will actually stop working, which will help users create better, valid Markdown and lead to fewer syntax errors and weird formatting issues. |
Added to the V3 changelog finally. Closing. |
Here is the original post on reddit.
The text was updated successfully, but these errors were encountered: