bx-markdown

Convert Markdown to HTML and HTML to Markdown in BoxLang.

Updated Apr 10, 2026
One-click install
npx skills add https://github.com/ortus-boxlang/skills --skill bx-markdown
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bx-markdown
Source: https://github.com/ortus-boxlang/skills/tree/main/boxlang-modules/bx-markdown
Command: npx skills add https://github.com/ortus-boxlang/skills --skill bx-markdown

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

BoxLang lacks convenient, built-in support for converting Markdown to HTML and HTML to Markdown, and bx-markdown provides a compact, reusable module to perform these transformations within BoxLang scripts.

Core Features & Use Cases

  • Markdown to HTML conversion using the markdown( txt ) BIF.
  • HTML to Markdown conversion using the HtmlToMarkdown( markup ) BIF.
  • Round-tripping content for rendering in web UIs, documentation generators, and content pipelines in BoxLang.

Quick Start

Install the bx-markdown module and call markdown() or HtmlToMarkdown() to convert content.

Frequently Asked Questions about bx-markdown

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert Markdown to HTML in BoxLang?

To convert Markdown to HTML in BoxLang, use the markdown( txt ) BIF provided by the bx-markdown module, which transforms raw markdown text into HTML markup for rendering in web UIs and documentation.

Can I convert HTML back to Markdown using BoxLang?

Yes, you can convert HTML back to Markdown in BoxLang by calling the HtmlToMarkdown( markup ) BIF, which parses existing HTML markup and outputs plain Markdown text for content pipelines.

What is the best way to handle bidirectional content conversion in BoxLang scripts?

The best way to handle bidirectional content conversion in BoxLang is installing the bx-markdown module, which provides both markdown() and HtmlToMarkdown() BIFs for round-tripping content between HTML and Markdown formats.

Do I need any dependencies to perform Markdown rendering in BoxLang?

You need to install the bx-markdown module to perform Markdown rendering in BoxLang, as the core runtime lacks built-in support for these transformations, but the module itself has no additional external dependencies.

When do I need to convert HTML to Markdown in a content pipeline?

You need to convert HTML to Markdown in a content pipeline when round-tripping content for documentation generators or web UIs, allowing you to normalize existing HTML markup into editable Markdown text within BoxLang scripts.