baoyu-format-markdown
Installation
SKILL.md
Markdown Formatter
Transforms plain text or markdown files into well-structured markdown with proper frontmatter, formatting, and typography.
Script Directory
Scripts in scripts/ subdirectory. Replace ${SKILL_DIR} with this SKILL.md's directory path.
| Script | Purpose |
|---|---|
scripts/main.ts |
Main entry point with CLI options (uses remark-cjk-friendly for CJK emphasis) |
scripts/quotes.ts |
Replace ASCII quotes with fullwidth quotes |
scripts/autocorrect.ts |
Add CJK/English spacing via autocorrect |
Preferences (EXTEND.md)
Use Bash to check EXTEND.md existence (priority order):