You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pymarkdown MD031 plugin crashes on RELEASE_PROCESS.md #10
While unblocking CI in #8, pymarkdown (`v0.9.23`) crashed with:
```
BadPluginError encountered while scanning 'RELEASE_PROCESS.md':
(29,4): Plugin id 'MD031' had a critical failure during the 'next_token' action.
```
MD031 is "fenced-code-language" / "blanks-around-fences" depending on version — whichever it is, the plugin itself throws, so pymarkdown can't even report a normal rule violation on this file.
Root cause: pymarkdown's MD031 fixer (not scanner) has a bug with fenced code blocks nested inside list items — it strips the 3-space indent, un-nesting the block. On the container runner it crashes with BadPluginError; on newer local versions it silently corrupts the file.
Workaround: RELEASE_PROCESS.md and TEMPERATURE_UNITS_IMPLEMENTATION.md rewritten in the correct form (blank line before fence, fence still at 3-space indent, fixed MD022/MD026/MD032/MD034 while in the area). Both files are now idempotent under pymarkdown fix + scan, and the pre-commit exclusion list drops back to the original three files.
Activity
fix(pymarkdown): rewrite RELEASE_PROCESS + TEMPERATURE_UNITS to satis…
gerchowl commentedon Apr 15, 2026
Fixed in #14 (merged to dev: e212891).
Root cause: pymarkdown's MD031 fixer (not scanner) has a bug with fenced code blocks nested inside list items — it strips the 3-space indent, un-nesting the block. On the container runner it crashes with BadPluginError; on newer local versions it silently corrupts the file.
Workaround:
RELEASE_PROCESS.mdandTEMPERATURE_UNITS_IMPLEMENTATION.mdrewritten in the correct form (blank line before fence, fence still at 3-space indent, fixed MD022/MD026/MD032/MD034 while in the area). Both files are now idempotent underpymarkdown fix+scan, and the pre-commit exclusion list drops back to the original three files.The underlying pymarkdown fixer bug should still be reported upstream at https://github.com/jackdewinter/pymarkdown — if someone wants to file that, minimal repro is a fenced code block immediately after a numbered list item marker with no intervening blank line, indented 3 spaces to stay inside the list item.
Merge pull request #17 from MorePET/dev