paragraph-conversion

Convert HTML paragraph tags to Markdown while preserving inline formatting.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the conversion of HTML paragraph tags into their Markdown equivalents, ensuring consistent formatting across different platforms.

Core Features & Use Cases

  • HTML to Markdown Conversion: Specifically handles <p> tags, preserving inline formatting like bold, italic, and links.
  • Whitespace and Line Break Handling: Correctly manages blank lines and trims excess whitespace for clean Markdown output.
  • Use Case: When migrating content from a web page to a Markdown-based documentation system, this Skill ensures that paragraphs are rendered correctly.

Quick Start

Use the paragraph-conversion skill to convert the provided HTML content into Markdown.

Frequently Asked Questions about paragraph-conversion

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

FAQPage Schema
How do I convert HTML paragraphs to Markdown?

To convert HTML paragraphs to Markdown, this Skill processes `<p>` tags and translates them into Markdown format. It specifically preserves inline formatting such as bold, italic, and links during the conversion process.

Does HTML to Markdown conversion preserve strong, em, and anchor tags?

Yes, HTML to Markdown conversion preserves inline formatting by applying specific logic for `<strong>`, `<em>`, and `<a>` tags. This ensures that bold, italic, and hyperlink structures remain intact within the converted paragraphs.

What is the best way to handle whitespace when converting HTML to Markdown?

The best way to handle whitespace during HTML to Markdown conversion is automatic trimming and line break management. This Skill correctly manages blank lines and removes excess whitespace to ensure clean Markdown output.

When do I need to convert HTML paragraph tags into Markdown format?

You need to convert HTML paragraph tags into Markdown format during content migration or web scraping scenarios. This process ensures that text paragraphs are rendered correctly when moving web content to a Markdown-based documentation system.

Can I use this for migrating web content to a Markdown documentation system?

Yes, you can use this for migrating web content to a Markdown documentation system. It automates the translation of HTML paragraph tags, ensuring consistent formatting across different platforms during the migration.