Closed itsjoekent closed 1 year ago
In order to not break the formatting of this Github Issue, I removed a backtick from the start & end of the JS codeblock.
Just use a larger fence wrapping your content:
Some paragraph.
content
As you can see, all of the code is being treated as a paragraph element, not a code or pre element. In the Github render, it is a pre element and renders as a code block:
Onto your issue. The Markdown parser used in the default Markdown plugin is Python Markdown. Python Markdown does not recognize fenced code by default. You must enable a fenced code extension.
I assume you may be referencing what we do in our project's default config, or maybe I need to fix something in the documentation, but here is an example of a project that does parse some Markdown with code blocks: https://github.com/facelessuser/coloraide/blob/main/.pyspelling.yml#L38. You'll notice we use pymdownx.superfences
extension to process code blocks.
Thank you for the tip! And the extension worked, spell check is passing now!
Having trouble getting this action to ignore code blocks in my markdown.
Here is my configuration,
Here is some sample markdown it's reporting spell check errors for,
Using pyspelling on configuration outlined in >.github/spellcheck-config.yml< Checking files matching specified outlined in >.github/spellcheck-config.yml<
Misspelled words: