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

Consider adding the option for custom patterns?

Open ColinEberhardt opened this issue 10 years ago • 5 comments

When spell checking a recent blog post, I had to add a lot of ignores due to filenames being referenced in plain text within the the blog post:

https://github.com/ColinEberhardt/blog/commit/2f65135f14e466ffd59ab922b15ff74903a54ff2#diff-b9a2754b5f195f0113dc72bd305fcdb3R986

I often surround filenames in back-ticks, but they aren't strictly speaking code, so I can understand why people would leave them plain text.

It would be great if I could add a few regex patterns via the spell checker configuration to exclude these patterns.

ColinEberhardt avatar Sep 18 '15 07:09 ColinEberhardt

you could use this to specify the current ignores as well, so for example the -n option wasn't needed if defined in the .spelling

lukeapage avatar Sep 18 '15 12:09 lukeapage

Is there any solution to ignore some text based on patterns?

b67808 k989jk9 jk890Kl

I want to ignore these kind of strings.

Are you going to add any option to ignore text based on patterns?

lokeshdaiya avatar Aug 14 '17 06:08 lokeshdaiya

The custom regex pattern for parts to ignoring is really needed. Every project may have their specific parts that they don't want to included spellchecking. Like markdown that using non-standard codeblock syntax.

mamat-rahmat avatar Oct 19 '17 16:10 mamat-rahmat

Regex support in .spelling would be amazing

Regex could have covered past functionality like --ignore-numbers and --ignore-acronyms

regex support solves these:

https://github.com/lukeapage/node-markdown-spellcheck/issues/99 https://github.com/lukeapage/node-markdown-spellcheck/issues/95 https://github.com/lukeapage/node-markdown-spellcheck/issues/89 https://github.com/lukeapage/node-markdown-spellcheck/issues/35 https://github.com/lukeapage/node-markdown-spellcheck/issues/9

Future requests like ignoring usernames and ignoring long "words" like API keys would be solved too

PatMyron avatar Jan 25 '19 18:01 PatMyron

This looks like it has a regex element https://www.npmjs.com/package/simple-spellchecker

plaindocs avatar Jul 08 '19 15:07 plaindocs