What problem does it solve?
Convert Markdown content into rendered HTML for ColdBox and BoxLang applications while preventing unsafe output and reducing repetitive rendering overhead. It addresses the gap between authoring text in Markdown and safely presenting rich HTML in views, APIs, and stored excerpts.
Core Features & Use Cases
- Injection of the Processor service to convert Markdown strings to HTML inside services, handlers, and views.
- Support for common Markdown features such as GitHub-Flavored Markdown tables, fenced code blocks, links, images, and blockquotes suitable for blogs, documentation, and comments.
- Safety guidance and patterns for sanitizing user-submitted Markdown by combining conversion with cbantisamy to mitigate XSS risks.
- Performance pattern recommendations such as caching rendered HTML for large documents and encoding metadata fields separately from body content.
Quick Start
Convert a Markdown string into sanitized HTML by injecting Processor@cbmarkdown, calling its toHTML method on the content, and then sanitizing the result with cbantisamy for any user-submitted input.