comment-block-transformer npm package applies transforms to Markdown comment blocks

DavidWells · x · 2026-11-25

David Wells highlights [email protected], an npm package for programmatically manipulating Markdown via HTML comment blocks. It parses <!-- block name -->...<!-- /block --> sections and applies configured transform functions, supporting per-block options via inline JSON (e.g. prefixes), multiple named transforms per document, and before/after middleware. Install with npm install comment-block-transformer and call blockTransformer(text, config); suited for automated doc pipelines that need templated section processing.

Original post →

More from coding & agent

coding & agent channel →