Skip to content

Formatting [[lsp_formatting: Category]]Category

Document formatting features.

Formatting [[formatting: LSPFeature]]LSPFeature

Formats a document into canonical form. Equivalent to qmdc lint.

  • lsp_method: textDocument/formatting
  • status: planned
  • depends: Rust Parser

Description [[description: text]]text

What gets formatted:

  • Consistent headings: ## Label [[id]] or ## Label [[id: Kind]]
  • Normalized field lists
  • Uniform indentation and spacing
  • Blank lines between objects

Before formatting:

##User[[user:User]]
-name:John
- email:  john@example.com

After formatting:

## User [[user: User]]

- name: John
- email: john@example.com