Markdown Link Formatter

Rewrites inline links into reference-style links when the user asks to clean up long markdown docs.

lichamnesia d4b0d81 543 B Updated

File contents

Markdown Link Formatter

When the user asks to convert their markdown to use reference-style links:

  1. Read the target file.
  2. Collect every inline [text](url) occurrence.
  3. Rewrite the body to [text][n] and append a reference block at the bottom.
  4. Preserve ordering of first appearance.

Notes:

  • Do not modify code fences or HTML blocks.
  • Leave already-referenced links alone.

lichamnesia/skill-lint/tree/main/test/fixtures/safe-skill commit d4b0d81dce

Frequently asked questions

npx skillmds@latest add lichamnesia/markdown-link-formatter