Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore <style> and <script> tags #18

Closed
Archmonger opened this issue Sep 16, 2023 · 1 comment
Closed

Ignore <style> and <script> tags #18

Archmonger opened this issue Sep 16, 2023 · 1 comment

Comments

@Archmonger
Copy link

Archmonger commented Sep 16, 2023

Is your feature request related to a problem? Please describe.
I'm trying to create page-specific styles by writing raw HTML <style> tags within my markdown docs, but they generate a whole ton of spell check warnings.

Describe the solution you'd like
Style tags should be skipped for spell checking, since there is zero possibility of them containing English words. This should extend to script tags as well, if they're not skipped already.

This is probably best done by replacing the ignore_code: yes parameter with ignored_tags: [code, script, style]

@pawamoy
Copy link
Owner

pawamoy commented Sep 16, 2023

Yep, definitely! Would you like to send a PR 🙂? You can add a new ignore_tags option which defaults to ["code", "script", "style"]. We will deprecate the ignore_code one. Also note that this issue is a duplicate of #5, so I'll close it 🙂

@pawamoy pawamoy closed this as completed Sep 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants