Skip to content

Exclude frontmatter (yaml or toml) in markdown or html files #3456

Answered by Jason3S
danielfdickinson asked this question in Q&A
Discussion options

You must be logged in to vote

@danielfdickinson,

I'll answer the easy question first.

cspell-dicts has a lot of cspell-ext.json examples. Here are a few to take a look at:

My suggestion would be to define a pattern: PatternFrontMatter.

Once you have that, you can use it wherever ignoreRegExpList is allowed:

"overrides": [{"filename": "website/**/*.md", "ignoreRegExpList": ["PatternFrontMatter"]}]
"languageSettings":[{"languageId": "markdown", "ignoreRegExpList": ["PatternFrontMatter"]}]

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
2 replies
@danielfdickinson
Comment options

@Jason3S
Comment options

Answer selected by danielfdickinson
Comment options

You must be logged in to vote
4 replies
@danielfdickinson
Comment options

@Jason3S
Comment options

@danielfdickinson
Comment options

@Jason3S
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants