fix-markdown-fences

Community

Automatically fix broken Markdown code fences.

Authorloriensleafs
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill automatically fixes malformed Markdown code fence closings, preventing rendering issues caused by closing fences that carry a language identifier or by unclosed blocks.

Core Features & Use Cases

  • Detect malformed closing fences that include a language specifier and insert a proper plain closing fence.
  • Fix Markdown files across a directory or repository, preserving indentation and multiple code blocks.
  • CLI and programmatic usage to integrate into CI pipelines or local workflows.

Quick Start

Run the fix_fences.py script against your Markdown repository:

  • python fix_fences.py docs
  • python -c "from fix_fences import fix_markdown_files; from pathlib import Path; fix_markdown_files(Path('docs'))"

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: fix-markdown-fences
Download link: https://github.com/loriensleafs/brain/archive/main.zip#fix-markdown-fences

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.