minivan / middleman-spellcheck

Run a spell checking job through aspell every time you build with middleman.
MIT License
13 stars 10 forks source link

[feature request] Support exclude-tags parameter #8

Open dwcramer opened 10 years ago

dwcramer commented 10 years ago

My site has a lot of source code-like things like PredicateFactory that are being picked up by the spell checker. I would like to be able to do:

activate :spellcheck, exclude-tags: [:code, :pre]

to cause the spell checking to avoid checking these elements that cause lots of spurious errors.

wkoszek commented 8 years ago

@dwcramer I second that. With the pull #18 :

https://github.com/minivan/middleman-spellcheck/pull/18/files

I'd also want to remove URL checking.

zealot128 commented 8 years ago

With recent commit, code, style and script tags are ignored by default:

https://github.com/minivan/middleman-spellcheck/blob/master/lib/middleman-spellcheck/extension.rb#L49

wkoszek commented 8 years ago

This looks great. Can we bump a number after this change and release it as 8.1 or something?

It'd be great to have "tag_exclude_override" so that we could override/add some tags to the already existing list.

W.

On 11/14/15 12:50 AM, Stefan Wienert wrote:

With recent commit, code, style and script tags are ignored by default:

https://github.com/minivan/middleman-spellcheck/blob/master/lib/middleman-spellcheck/extension.rb#L49

— Reply to this email directly or view it on GitHub https://github.com/minivan/middleman-spellcheck/issues/8#issuecomment-156671659.

wkoszek commented 8 years ago

@zealot128 I think this issue can be closed?