Skip to content

skipNodeTypes with "Code" not working for inline code blocks #57

@trevordmiller

Description

@trevordmiller

Example textlint config:

{
  "rules": {
    "spellchecker": {
      "skipNodeTypes": ["Code"]
    }
  }
}

Example markdown:

### Here are some example files

- `.bash_profile` is used by Bash for my shell configuration.
- `.gitconfig` is used by Git for my version control configuration.
- `.vimrc` is used by Vim for my editor configuration.
...

Running textlint on this lead to errors like:

error  gitconfig ->                                             spellchecker
error  vimrc -> vimdc, vimcc, vimlc, vimmc, vimvc, vimxc, vimc  spellchecker

The docs that are linked to show Code as the option for this:
https://github.com/textlint/textlint/blob/master/docs/txtnode.md#type

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions