← ClaudeAtlas

markdown-formattinglisted

Format Markdown so it renders the same everywhere and passes a linter: heading levels, blank lines around every block, list markers and nesting, fenced code with a language, links, and tables. Use this skill whenever you write or edit a .md file, review someone else's Markdown, fix a document that renders wrong, or build a table by hand. Trigger it even when the user only says 'write the README', 'fix this doc' or 'add a table' without naming Markdown. Do NOT use it for the wording itself, which belongs to the technical-writing skill, or for rendering Markdown to another format.
pavelzaitsau/copydesk · ★ 0 · Code & Development · score 72
Install: claude install-skill pavelzaitsau/copydesk
# Markdown formatting Markdown has no single specification. GitHub Flavored Markdown, CommonMark and every editor's own parser disagree at the edges. The disagreement is silent: the document looks right where you wrote it, and collapses somewhere else. The rules here are the intersection that renders the same in every common parser. They match the markdownlint defaults, so a document that follows them also passes the gate. Wording is a separate concern. Sentence rules, structure and vocabulary live in the `technical-writing` skill. ## Blank lines decide almost everything Most broken Markdown is a missing blank line. A parser needs the blank line to know a block ended; without it, the next block is swallowed into the previous paragraph. Surround every block-level element with a blank line: headings, lists, fenced code, tables, blockquotes and horizontal rules. Broken: ```markdown ## Setup Run the installer. - download it - run it ~~~ npm install ~~~ | Step | Time | | --- | --- | ``` Correct: ```markdown ## Setup Run the installer. - download it - run it | Step | Time | | --- | --- | | download | 1 min | ``` The exceptions are the start and the end of the file, where there is nothing to separate from. ## Headings - One `#` heading per document, first line of the file. It is the title. - Descend one level at a time. A `##` never jumps to `####`; the reader and every table-of-contents generator use the levels to build a tree. - ATX style only: `## Heading`, one sp