-
Notifications
You must be signed in to change notification settings - Fork 46
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 mode highlighting isn't CommonMark compliant #21
Comments
Probably related bug when editing https://meta.stackexchange.com/a/363991/295232: |
@Glorfindel83 Agreed, that looks related to me and is likely due to the mixing of Without committing to a specific timeline here (stay tuned), this is relatively high on our priority list to address. |
@b-kelly - I've submitted a fix for this issue into the highlight.js. Maybe you can help promote the PR? It was SUPER simple. Really the parser was just being over vigilant in trying to match the ending characters for bold/italics. |
I just encountered that bold-and-italics problem myself (well, I noticed it a while ago; I just didn't figure out the source of the problem until now). I also noticed something else: If the bolded-and-italicized text occurs within a blockquote, then the rest of the text from that point onwards is also displayed as if it’s grayed-out (i.e. as if it were part of a blockquote), as well as bolded and italicized. (Another issue with the Stacks editor’s inline preview/"highlighting" in Markdown mode that doesn't seem to have been mentioned above: It behaves as if the syntax for italics/bold formatting works across multiple lines (e.g. with the opening |
@b-kelly given that highlightjs/highlight.js#3457 was merged into hljs, is this resolved now (at least in part)? Is stacks editor up to date with hljs? |
Stacks-Editor should be up-to-date with hljs (check package.json for exact version). This issue however still needs a ton of work, likely involving a massive amount of upstream changes or switching to a different highlighting approach entirely (for markdown mode, not the rich-text or baked post). |
@b-kelly is it possible to fully define the project somewhere and to potentially break down the work needed into smaller bits? |
@b-kelly I just added:
Hopefully will also be addressed in your suggested approach. If either isn't included here, we should split off into separate issues. |
Umbrella issue to track multiple bugs.
Reported on Meta.SE in the following posts:
lang-*
doesnt work in RT, works on siteThe text was updated successfully, but these errors were encountered: