Possible to ignore words in magic commands? #171
-
We use pyspelling in a GitHub Actions workflow to check our markdown prior to publishing to GitBook. In GitBook, we can embed videos with the following magic command:
I see that the action can ignore markdown links as per rojopolis/spellcheck-github-actions#24 , but it seems to miss magic commands such as this. I get the following output:
Is there any way to specify ignore strings between characters/strings, for example, between {% and %}? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 10 replies
-
I imagine it is possible. You can probably create a context filter to ignore them. We do similar things to ignore content in our source code: https://github.com/facelessuser/pyspelling/blob/master/.pyspelling.yml#L116. |
Beta Was this translation helpful? Give feedback.
-
So, was any of this helpful? The Context filter documentation is here if you need more info: https://facelessuser.github.io/pyspelling/filters/context/. Moving to discussions. |
Beta Was this translation helpful? Give feedback.
@ShawnHymel You never posted any actual config, so I have no idea what you are actually doing. I am assuming you are using the markdown extension in Pyspelling, so I will continue answering with this assumption. I tested with the metadata extension and it should remove the frontmatter from your documents eliminating your current complaint.