-
-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
Weird markdown syntax highlighting #959
Comments
Can we have a markdown label, so we can track all of these? The markdown mode in CodeMirror is so different to the regex parser we use in showdown, the best way to fix all these is going to be to unify them. |
The first problem ('ddddddd') is caused by Github flavored markdown (gfm.js: line 66). It matches a hex number with more than 7 characters. Is Github flavor needed? |
Second problem is codemirror behaviour where it interprets the first |
@ErisDS You will see we have an "editor" label already to track all of these ;) |
@JohnONolan lol when did that happen... but cool. @sebgie, we are using certain features of gfm, like auto linking, so if we turn it off we lose features, and if we turn it on we get oddness like this. With regards to We're absolutely pushing the boundaries of the markdown specification. We are using parts of the GFM spec, and we are in part defining our own 'Haunted Markdown' spec. At the moment, we're doing this using existing tools and it's absolutely not the best solution. Long term we want to formalise our spec and build our own tools. Unfortunately, I'm not sure there is any quick fixes for these issues without forking / writing our own CodeMirror mode, and even that is more of a 0.4 quick fix, as opposed to something we can hack in for 0.3.2. |
#wontfix |
Accidentally discovered this bug while reporting #958
When typing the same char lots of times, eg: dddddddddddddd - Markdown thinks it is a link, and gives it a class of .cm-link (this should not happen)
The text was updated successfully, but these errors were encountered: