code-block-conversion
OfficialConvert preformatted code blocks.
Software Engineering#markdown#html#conversion#syntax highlighting#code block#whitespace preservation
Authorkreuzberg-dev
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill addresses the challenge of accurately converting preformatted text and code blocks from HTML into Markdown, ensuring that code is displayed correctly with proper formatting and language highlighting.
Core Features & Use Cases
- Preserves Whitespace: Maintains the exact whitespace and indentation of code blocks.
- Language Annotation: Supports adding language hints for syntax highlighting in Markdown.
- Flexible Formatting: Handles both triple backtick and indented code block styles.
- Use Case: Convert a section of HTML documentation containing a code example into a Markdown file for a README, ensuring the code is rendered perfectly.
Quick Start
Convert the provided HTML code block into a Markdown code block, preserving its original whitespace and adding a 'javascript' language hint.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 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: code-block-conversion Download link: https://github.com/kreuzberg-dev/html-to-markdown/archive/main.zip#code-block-conversion Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.