node-markdown-spellcheck icon indicating copy to clipboard operation
node-markdown-spellcheck copied to clipboard

_ treated as special character, but included in following word

Open ceejsmith opened this issue 9 years ago • 3 comments
trafficstars

I recently wrote a blog post for Scott Logic where I mentioned a file called Docker_gateway. mdspell rejected it, and the solution was to add _gateway to .spelling. If _ is being treated as a special character, it shouldn't be included in words either side of it.

ceejsmith avatar Jan 25 '16 15:01 ceejsmith

Its underline in markdown, but possibly not stripping it because there is no matching (or maybe markdown requires whitespace before?)

lukeapage avatar Jan 25 '16 15:01 lukeapage

Ah, good point - perhaps it would be better to backtick that text anyway? i.e. Docker_gateway

ColinEberhardt avatar Jan 25 '16 16:01 ColinEberhardt

Yes, it might be better to backtick it. I had a look at the stack trace for the error being thrown and dug into the code, but it'd take me longer than I've got to come up with a PR. I've got to get a bench project going! Nice work by the way Luke.

ceejsmith avatar Jan 26 '16 10:01 ceejsmith