How to filter toml from Markdown #148
-
Hey, I'm trying to filter a toml header from a markdown file using the context filter, however I can't get it to drop the toml header from the spellcheck. Here is an example file I'm matching against: This is how my spellcheck configuration looks (github action):
Does anyone have an idea what I'm doing wrong? Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I do not see anything obviously wrong. I'm assuming this is how you are avoiding the Toml header? - pyspelling.filters.context:
context_visible_first: true
escapes: '\\[\\`~]'
delimiters:
- open: '(?s)^\+{3}$'
close: '^\+{3}$' If so, it seemed to work for me. I tested it by copying this to the top of one of my Markdown files which is under spell testing, nothing in it was picked up. Unless I'm missing some subtle mistake in your config, it should work just fine.
|
Beta Was this translation helpful? Give feedback.
I do not see anything obviously wrong. I'm assuming this is how you are avoiding the Toml header?
If so, it seemed to work for me. I tested it by copying this to the top of one of my Markdown files which is under spell testing, nothing in it was picked up. Unless I'm missing some subtle mistake in your config, it should work just fine.