Markdown Code Fence Repair

•
34
•

Repairs malformed markdown code block closings to ensure correct rendering and prevent content bleeding.

This skill automatically scans and repairs malformed markdown code fences, specifically targeting common errors like language identifiers in closing tags or unclosed blocks. By tracking the state of code blocks throughout a file, it identifies where markdown rendering is broken due to syntax errors, ensuring that documentation remains clean, professional, and readable in any markdown viewer. It is an essential utility for developers and technical writers who need to maintain large documentation suites where manual syntax checking is error-prone.

主な機能

01Detects and fixes nested block rendering issues
02Automatically closes unclosed code blocks at the end of files
03Removes illegal language identifiers from closing fences
04Stateful line-by-line scanning to prevent false positives
05Preserves existing indentation levels for consistent formatting
0634 GitHub stars

ユースケース

01Fixing 'bleeding' code blocks where text is accidentally rendered as code
02Pre-commit validation to ensure technical documentation renders correctly on GitHub/GitLab
03Cleaning up documentation generated by scripts that incorrectly use closing tags