Closed Archmonger closed 1 year ago
Hello, thanks for the report!
I don't think the cause is what you describe. This plugin operates on HTML, not Markdown, so indented blocks transformed into admonitions have no reason to be skipped :thinking:
I'll take a look!
One detail I forgot to mention is that ignore_code=no
allows admonitions to be spelled checked. But obviously, all my actual code blocks end up spamming the console with warnings.
Wow, there was a huge bug in the HTML stripper hahaha. For some reason I implemented a handle_stoptag
method while it's actually called handle_endtag
.
Released in version 0.2.2 :slightly_smiling_face:
Describe the bug Nothing that is indented will get spellchecked, such as mkdocs material admonitions.
mkdocs-spellcheck
is assuming all indented content are always codeblocks.Here are some potential fixes: 1) Assume code blocks always fenced (using triple ticks ``` ). Indented code blocks have been fairly uncommon styling for a while now. 2) Create two separate toggles for
ignore_code
andignore_indents
. Could alleviate this issue. I personally don't use indents for code blocks anymore, especially due tomkdocs-material
's color formatted code blocks. 3) Create some some heuristic matching to determine "what is a code block".To Reproduce Steps to reproduce the behavior:
Expected behavior Indented content should be spell checked
Screenshots N/A
System (please complete the following information):
MkDocs SpellCheck
version: 0.2.1Additional context N/A