Kampute.DocToolkit.IO.Minifiers Namespace

Contains minifier implementations that reduce output size while preserving document structure for various formats.

Remarks

Minifiers in this namespace implement content reduction techniques specific to each supported format. They remove non-essential whitespace while maintaining the semantic structure of the content. This reduces file sizes for documentation while remaining compatible with standard parsers and renderers.

Classes

HtmlMinifierA TextWriter that wraps another TextWriter that outputs well-formed HTML content, minifying it by removing unnecessary whitespace and comments, while preserving whitespace within <pre> elements.
MarkdownMinifierA TextWriter that wraps another TextWriter to output well-formed Markdown content, minifying it by eliminating superfluous whitespace while preserving whitespace within code blocks to maintain the intended formatting.