2

I am confused about what is going on in this example and why spell checking is not working any help is appreciated.

While editing a markdown file with spell checking enabled the following happens:

* This line is spellchecked
    - This line is also spellchecked
        - This line is not spellchecked

I also noticed that this also doesn't work

* This line is really long but spellchecked
    continuation of text after linewrap from the previous line, this line is not spellchecked

Indentation is 1 tab character per level.

Google has turned up nothing but since the - is not bold on the third bullet as the rest are I assume this is some kind of markdown spec violation but I am not sure which. Is there a way to make this work?

2
  • Not any help, but just for reference, the same is happening here...
    – lsrdg
    Mar 25, 2017 at 13:11
  • What version of Vim are you using? It works with 8.0.502
    – laktak
    Mar 28, 2017 at 18:36

1 Answer 1

3

Check the syntax id of the text not spell checked.

First define the command SynID:

command SynID  echo synIDattr(synID(line("."), col("."), 1), "name")

Then move the cursor to the text that is not spell checked and execute :SynID. For "normal" text it returns nothing. I tested your markdown snippet and it returned markdownCodeBlock for the third level.

If you just indent by 2 spaces, the third level is spell checked, but the fourth level is detected as markdownCodeBlock.

Looks like it was already reported.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.