則
Rule
markdown-style
Consistent markdown formatting conventions applied to all generated files.
Apply these conventions to all markdown files.
Document Structure
- Start with a single
#heading as the document title - Use ATX-style headings (
#) only — never setext underlines (===,---) - Increment heading levels by one — never skip levels
- No trailing punctuation in headings
- Surround headings with blank lines (one before, one after)
Line Length
- Wrap prose at 72–80 characters
- Exceptions: links, tables, headings, and code blocks may exceed this
Spacing
- One blank line before and after headings, lists, code blocks, and tables
- No multiple consecutive blank lines
- No trailing whitespace
- Files end with a single newline
Emphasis
**bold**for key terms and warnings — never__bold__*italic*for emphasis and titles — never_italic_`backticks`for code, file names, commands, and field names- Don't bold entire sentences or paragraphs
Lists
- Use
-for unordered lists — never*or+ - Use
1.for all ordered list items (lazy numbering) in long lists - Use sequential numbering (
1.,2.,3.) for short, stable lists - One space after the list marker
- Indent nested lists by 2 spaces
- Surround lists with blank lines
Code
- Use fenced code blocks (triple backticks) — never indented code blocks
- Always specify the language after opening backticks
- Use
textas language when no specific language applies - Use inline backticks for short code, file names, commands, and variables
- Don't prefix shell commands with
$unless showing output alongside
Links
- Use descriptive link text — never "click here" or "link"
- When referencing a repo file in prose, use a relative link. Paths inside code blocks or inline code are exempt.
- Use reference-style links when the URL would break line length or when the same URL appears multiple times
- Use relative paths for links within the same repository
Tables
- Use tables for tabular data that benefits from scanning — not for layout or prose
- Align columns with pipes and hyphens for source readability
- Keep table cells under 60 characters — use reference links for long URLs
- Prefer lists over tables when data doesn't have uniform structure
Images
- Always include descriptive alt text
- Use relative paths for local images
Formatting
- Prefer markdown over inline HTML
- No hard tabs — use spaces
- Always wrap at 72–80 characters. No exceptions for sentence-per-line style.
└── RULE.md
RULE.md | | Raw
Markdown Style
Apply these conventions to all markdown files.
Document Structure
- Start with a single
#heading as the document title - Use ATX-style headings (
#) only — never setext underlines (===,---) - Increment heading levels by one — never skip levels
- No trailing punctuation in headings
- Surround headings with blank lines (one before, one after)
Line Length
- Wrap prose at 72–80 characters
- Exceptions: links, tables, headings, and code blocks may exceed this
Spacing
- One blank line before and after headings, lists, code blocks, and tables
- No multiple consecutive blank lines
- No trailing whitespace
- Files end with a single newline
Emphasis
**bold**for key terms and warnings — never__bold__*italic*for emphasis and titles — never_italic_`backticks`for code, file names, commands, and field names- Don't bold entire sentences or paragraphs
Lists
- Use
-for unordered lists — never*or+ - Use
1.for all ordered list items (lazy numbering) in long lists - Use sequential numbering (
1.,2.,3.) for short, stable lists - One space after the list marker
- Indent nested lists by 2 spaces
- Surround lists with blank lines
Code
- Use fenced code blocks (triple backticks) — never indented code blocks
- Always specify the language after opening backticks
- Use
textas language when no specific language applies - Use inline backticks for short code, file names, commands, and variables
- Don't prefix shell commands with
$unless showing output alongside
Links
- Use descriptive link text — never "click here" or "link"
- When referencing a repo file in prose, use a relative link. Paths inside code blocks or inline code are exempt.
- Use reference-style links when the URL would break line length or when the same URL appears multiple times
- Use relative paths for links within the same repository
Tables
- Use tables for tabular data that benefits from scanning — not for layout or prose
- Align columns with pipes and hyphens for source readability
- Keep table cells under 60 characters — use reference links for long URLs
- Prefer lists over tables when data doesn't have uniform structure
Images
- Always include descriptive alt text
- Use relative paths for local images
Formatting
- Prefer markdown over inline HTML
- No hard tabs — use spaces
- Always wrap at 72–80 characters. No exceptions for sentence-per-line style.
1.0.0 — 2026-04-25
Added
- Document structure conventions (headings, hierarchy, spacing)
- Line length guidance (72–80 characters with exceptions)
- Emphasis, list, code, link, table, and image conventions
- References to markdownlint, Google style guide, Markdown Guide, and Markdown best practices
- markdownlint (MIT) — structural rules: heading levels, blank lines, trailing whitespace, code block language, file ending newline (adopted in v1.0.0)
- Google Markdown style guide (CC BY 3.0) — ATX headings, 80-char line limit, lazy numbering, descriptive links, prefer markdown over HTML (adopted in v1.0.0)
- Markdown best practices — consistent emphasis markers, alt text, table alignment, code block language specification (adopted in v1.0.0)
- Markdown Guide (CC BY-SA 4.0) — table formatting, fenced code blocks, syntax highlighting (adopted in v1.0.0)