How this tool computes its result
Three independent regex pipelines, one per mode (HTML/CSS/Markdown), each with a separate format and minify function — there is no shared AST. HTML format tokenizes on tag boundaries and tracks an indent counter (incrementing after an opening tag, decrementing on a closing tag, leaving it unchanged for anything matching `/\/>$/`, `<!`, or `<?`). HTML minify strips comments and collapses inter-tag/duplicate whitespace. CSS format strips comments, puts each brace/semicolon/colon on its own normalized line, then re-indents by brace depth; CSS minify strips comments and all non-essential whitespace around `{ } : ; ,`. Markdown format trims trailing whitespace and collapses runs of blank lines to one; Markdown minify trims every line and removes all blank lines entirely.
