cbmarkdown

Official

Convert Markdown to safe HTML in ColdBox

AuthorColdBox
Version1.0.0
Installs0

System Documentation

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.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: cbmarkdown
Download link: https://github.com/ColdBox/skills/archive/main.zip#cbmarkdown

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.