errata-ai / vale

:pencil: A markup-aware linter for prose built with speed and extensibility in mind.
https://vale.sh
MIT License
4.44k stars 153 forks source link

Ignore metadata tags like title in HTML #415

Closed kKronstainBrown closed 2 years ago

kKronstainBrown commented 2 years ago

Is it possible to add to the ignored scopes list individual tags that would be in HTML head metadata? In particular, title. Our markdown to HTML transforms auto-generate titles with the contents of H1, but strip out all formatting. So things we have set to be ignored, like code phrases, aren't being ignored properly with the code ticks missing. I would just like to ignore all titles to get around the behavior.

jdkato commented 2 years ago

I'm not sure that I understand, are you running Vale on your Markdown or HTML?

kKronstainBrown commented 2 years ago

HTML.

jdkato commented 2 years ago

You can use SkippedScopes:

# By default, `script`, `style`, `pre`, and `figure` are ignored.
SkippedScopes = script, style, pre, figure, title