emphasis-and-formatting-conversion

Convert HTML strong, em, and del tags to Markdown syntax.

836|66|Updated Feb 3, 2025
One-click install
npx skills add https://github.com/kreuzberg-dev/html-to-markdown --skill emphasis-and-formatting-conversion
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: emphasis-and-formatting-conversion
Source: https://github.com/kreuzberg-dev/html-to-markdown/tree/main/.ai-rulez/domains/conversion-algorithms/skills/emphasis-and-formatting-conversion
Command: npx skills add https://github.com/kreuzberg-dev/html-to-markdown --skill emphasis-and-formatting-conversion

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the conversion of HTML emphasis and formatting tags (like bold, italic, and strikethrough) into their corresponding Markdown syntax, ensuring consistent and accurate text representation across different platforms.

Core Features & Use Cases

  • HTML to Markdown Conversion: Accurately translates <strong>, <em>, and <del> tags into Markdown's **, *, and ~~ respectively.
  • Nested Formatting Handling: Correctly applies triple asterisks for combined bold and italic text.
  • Escaping Logic: Prevents double-escaping of Markdown characters within converted content.
  • Use Case: When migrating content from a rich text editor that uses HTML to a Markdown-based documentation system, this Skill ensures that all emphasis is preserved correctly.

Quick Start

Use the emphasis-and-formatting-conversion skill to convert the following HTML content to Markdown.

Frequently Asked Questions about emphasis-and-formatting-conversion

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

FAQPage Schema
How do I convert HTML emphasis tags to Markdown syntax?

To convert HTML emphasis tags to Markdown, this Skill translates `<strong>`, `<em>`, and `<del>` tags into Markdown's `**`, `*`, and `~~` syntax respectively. It ensures accurate text representation when migrating content from rich text editors to Markdown-based systems.

What is the best way to handle nested bold and italic formatting during HTML to Markdown conversion?

Handling nested bold and italic formatting during HTML to Markdown conversion requires applying triple asterisks for combined text. This Skill correctly processes nested combinations of strong and em tags, preserving the exact emphasis structure in the final Markdown output.

Why does my Markdown output have double-escaped characters after converting from HTML?

Double-escaped Markdown characters in your output occur when conversion tools lack proper escaping logic. This Skill prevents double-escaping of Markdown characters within the converted content, ensuring clean text processing without redundant escape symbols.

Does this HTML to Markdown conversion support strikethrough del tags?

Yes, HTML to Markdown conversion supports strikethrough tags by translating HTML `<del>` tags directly into Markdown's `~~` syntax. This ensures that strikethrough formatting is consistently preserved during content migration.

Can I use this for content migration from a rich text editor to a Markdown documentation system?

You can use this Skill for content migration from a rich text editor that outputs HTML to a Markdown documentation system. It accurately translates all emphasis and formatting tags, ensuring that your text formatting remains consistent across different platforms.