Used by Web extension to format agent responses. Used by CLI tools for terminal
output.
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: copilot-ld-copilot-ld-libformat3description: libformat Skill4---56# libformat Skill78## When to Use910- Rendering markdown as HTML in web applications11- Formatting CLI output with colors and styling12- Converting agent responses for display13- Sanitizing user-generated markdown content1415## Key Concepts1617**toHtml**: Converts markdown to HTML with sanitization to prevent XSS attacks.1819**toTerminal**: Converts markdown to terminal output with ANSI escape codes for20colors and formatting.2122## Usage Patterns2324### Pattern 1: Web rendering2526```javascript27import { toHtml } from "@copilot-ld/libformat";2829const html = toHtml("# Hello **World**");30// Returns: <h1>Hello <strong>World</strong></h1>31```3233### Pattern 2: Terminal output3435```javascript36import { toTerminal } from "@copilot-ld/libformat";3738const output = toTerminal("# Hello **World**");39console.log(output); // Colored terminal output40```4142## Integration4344Used by Web extension to format agent responses. Used by CLI tools for terminal45output.4647---48> Converted and distributed by [TomeVault](https://tomevault.io/claim/copilot-ld) — claim your Tome and manage your conversions.49<!-- tomevault:4.0:skill_md:2026-04-13 -->
Run npx skillmds@latest add tomevault-io/copilot-ld-copilot-ld-libformat in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
libformat Skill It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.