jbt / markdown-editor

Live (Github-flavored) Markdown Editor
http://jbt.github.com/markdown-editor
ISC License
2.82k stars 643 forks source link

Words that look like hex are highlighted #72

Closed cassdeckard closed 6 years ago

cassdeckard commented 7 years ago

This is a minor annoyance but it completely derailed my train of thought the first time it happened. I was typing the word "feedback" and noticed that right before I typed the "k" the editor was highlighting the word purple and underlining it.

After some experimentation I learned that any combination of 7 or more hex characters ([0-9a-fA-F]) are highlighted in this way.

A pathological case of this is if your copy happens to contain the words "defaced" or "acceded" those words will be highlighted and there is no way around it.

My suggestion would be to turn that feature of the code editor off, or make it only happen when the string is prefaced by a # or 0x

aero31aero commented 6 years ago

Closing this. Please refer to #77.