Structs§
- Config
- Config
Builder - Extensions
- Pandoc/Markdown extensions configuration. Each field represents a specific Pandoc extension. Extensions marked with a comment indicate implementation status.
- Formatter
Config - Configuration for an external code formatter.
- Formatter
Definition - NEW: Named formatter definition (formatters.NAME sections in new format) OLD: Language-specific formatter config (formatters.LANG sections in old format)
- Formatter
Preset Metadata - Lint
Config - Linter configuration.
Preferred shape is
[lint.rules] rule-name = true/false. Legacy[lint] rule-name = true/falseis still supported (deprecated). - Parser
Config - Parser configuration.
- Style
Config - Formatting style configuration. Groups all style-related settings together.
Enums§
- Blank
Lines - Flavor
- The flavor of Markdown to parse and format. Each flavor has a different set of default extensions enabled.
- Formatter
Value - NEW: Language → Formatter mapping value (single formatter or chain)
- Line
Ending - Math
Delimiter Style - Style for formatting math delimiters
- Pandoc
Compat - TabStop
Mode - Tab stop handling for formatter output.
- Wrap
Mode
Constants§
Functions§
- all_
formatter_ preset_ metadata - default_
formatters - Get the default formatters HashMap with built-in presets. Currently includes R (air) and Python (ruff).
- formatter_
preset_ metadata - formatter_
preset_ names - Canonical built-in formatter preset names used for docs and diagnostics.
- formatter_
preset_ supported_ languages - formatter_
presets_ for_ language - get_
formatter_ preset - Get a built-in formatter preset by name. Returns None if the preset doesn’t exist.
- load
- Load configuration with precedence: