list-conversion-and-nesting

Convert HTML lists into Markdown lists with preserved nesting and indentation.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the conversion of HTML lists into correctly formatted Markdown lists, ensuring proper nesting and indentation.

Core Features & Use Cases

  • HTML to Markdown List Conversion: Accurately transforms <ul> and <ol> HTML tags into their Markdown equivalents.
  • Nesting and Indentation: Handles nested lists, applying correct indentation levels for readability.
  • Style Options: Supports different bullet styles for unordered lists (e.g., -, *, +) and sequential numbering for ordered lists.
  • Tight/Loose Formatting: Detects and applies appropriate spacing between list items based on HTML structure.
  • Use Case: Convert a complex HTML changelog with nested feature lists into a clean, readable Markdown format for documentation.

Quick Start

Convert the provided HTML snippet containing lists into Markdown format.

Frequently Asked Questions about list-conversion-and-nesting

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

FAQPage Schema
How do I convert HTML lists to Markdown while preserving nesting?

To convert HTML lists to Markdown and preserve nesting, you need a tool that translates `<ul>` and `<ol>` tags while applying correct indentation levels. This Skill automates that conversion, ensuring nested lists retain their proper hierarchical structure and readability.

Can I change bullet styles when converting unordered HTML lists to Markdown?

Yes, you can configure bullet styles when converting unordered HTML lists to Markdown. This Skill supports different bullet characters such as `-`, `*`, and `+`, allowing you to match specific Markdown formatting conventions for your documentation.

How does tight versus loose list formatting work in Markdown conversion?

Tight versus loose Markdown list formatting depends on spacing between items. This Skill detects the HTML structure and automatically applies the appropriate tight or loose formatting, adding or removing spacing to match the original document's layout.

What is the best way to handle complex HTML changelogs with nested feature lists?

The best way to handle complex HTML changelogs with nested feature lists is to automate the conversion process. This Skill accurately transforms deeply nested `<ul>` and `<ol>` tags into clean, readable Markdown with correct indentation for documentation.

Does HTML to Markdown conversion support ordered list numbering?

Yes, HTML to Markdown conversion supports ordered list numbering. This Skill processes `<ol>` tags and applies sequential numbering to the generated Markdown list, ensuring ordered items maintain their correct numerical sequence.