Configuration Reference
Complete .agent-md.json Schema
Section titled “Complete .agent-md.json Schema”Below is a complete reference of all valid configuration properties recognized by agent-md:
{ "remove-bold": true, "compact-blank-lines": true, "collapse-spaces": true, "remove-horizontal-rules": true, "remove-emphasis": true, "minify-html": true,
"blanks-around-headings": true, "blanks-around-lists": true, "blanks-around-fences": true, "first-line-heading": false, "no-duplicate-headings": true, "no-hard-tabs": true,
"line-length": false, "max-line-length": 0, "ignore-markdownlintrc": false,
"overrides": [ { "includes": ["docs/*"], "excludes": ["docs/generated/*"], "rules": { "remove-bold": false } } ]}Configuration Properties
Section titled “Configuration Properties”Formatter Properties
Section titled “Formatter Properties”remove-bold(bool, default:true): Strips**text**and__text__outside code blocks.compact-blank-lines(bool, default:true): Collapses multiple consecutive empty lines to 1.collapse-spaces(bool, default:true): Normalizes consecutive whitespace between words.remove-horizontal-rules(bool, default:true): Deletes---,***, and___divider lines.remove-emphasis(bool, default:true): Strips*italic*and_italic_outside code blocks.minify-html(bool, default:true): Collapses HTML blocks onto single lines; preserves<pre>and<code>.
Linter Properties
Section titled “Linter Properties”blanks-around-headings(bool, default:true): Blank lines around#headings.blanks-around-lists(bool, default:true): Blank lines around list items.blanks-around-fences(bool, default:true): Blank lines around fenced blocks.first-line-heading(bool, default:true): Enforces first line is a title.no-duplicate-headings(bool, default:true): Flags duplicate heading names.no-hard-tabs(bool, default:true): Forbids\ttab characters outside code.line-length(bool, default:false): Enables line character limit.max-line-length(u64, default:0): Character threshold whenline-lengthis enabled.
Discovery Properties
Section titled “Discovery Properties”ignore-markdownlintrc(bool, default:false): Whentrue, ignores.markdownlint.*fallback files during search.