This guide ensures consistent markdown formatting across all OpenWave documentation.
All .md files must comply with these standards to pass linting checks.
Always add a blank line after headings before content starts.
Good:
## Heading
Content starts here.Bad:
## Heading
Content starts here.Every markdown file must end with exactly one newline character.
Good:
Last line of content.
Bad:
Last line of content.```
### MD032: Blank Lines Around Lists
Lists should be surrounded by blank lines.
**Good:**
```markdown
Some text before the list.
- Item 1
- Item 2
Some text after the list.Bad:
Some text before the list.
- Item 1
- Item 2
Some text after the list.Always specify the language for syntax highlighting:
# Python code
def example():
passWhile not enforced by linter, consider keeping lines under 120 characters for better readability in code editors.
The project uses markdownlint for enforcing these standards. Common issues:
MD022/blanks-around-headings: Add blank lines after headingsMD047/single-trailing-newline: Ensure file ends with single newlineMD032/blanks-around-lists: Add blank lines around lists
Before committing any .md file:
- All headings have blank lines after them
- Lists have blank lines before and after
- File ends with exactly one newline
- Code blocks specify language
- Links use descriptive text
If using VS Code with markdownlint extension, these rules are automatically highlighted. The project's .markdownlint.json (if present) contains the specific configuration.