link-conversion

Convert HTML anchor tags to Markdown link syntax.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill addresses the need to convert HTML anchor tags into their Markdown equivalents, facilitating content migration and consistency across platforms.

Core Features & Use Cases

  • HTML to Markdown Conversion: Accurately transforms HTML <a> tags into Markdown link syntax.
  • Attribute Handling: Correctly processes href and title attributes for robust conversion.
  • Use Case: When migrating blog content from an HTML-based CMS to a Markdown-based one, this Skill can automatically convert all embedded links.

Quick Start

Convert the provided HTML link into its Markdown representation.

Frequently Asked Questions about link-conversion

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

FAQPage Schema
How do I convert HTML links to Markdown format?

You can convert HTML links to Markdown by extracting the href attribute, sanitizing the URL, and processing the link text and title attributes to produce standard Markdown link syntax.

What happens to HTML anchor tags with missing href or text attributes?

When converting HTML anchor tags with missing href or text, the Skill handles these edge cases gracefully to ensure the resulting Markdown output remains valid and functional.

Does the HTML to Markdown conversion preserve fragment URLs and title attributes?

Yes, the HTML to Markdown conversion preserves fragment URLs and correctly processes title attributes, ensuring that anchors and supplementary link information remain intact in the final Markdown output.

What is the best way to migrate blog content with embedded links from HTML to Markdown?

The best way to migrate blog content from an HTML-based CMS to a Markdown-based one is to use this Skill to automatically transform all embedded anchor tags into their Markdown equivalents.

Why does URL sanitization matter when transforming HTML anchor tags into Markdown?

URL sanitization matters when transforming HTML anchor tags because it cleans the extracted href values, preventing malformed links and ensuring the generated Markdown syntax remains secure and compliant across platforms.