← 返回
内容创作 中文

Markdown to Page

Convert Markdown files into styled, scrollable wide-screen HTML pages with dark/light themes, animations, and rich directive components for web articles.
将Markdown文件转换为具有深色/浅色主题、动画和丰富指令组件的样式化、可滚动宽屏HTML页面,用于网络文章展示。
lz-web3
内容创作 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 706
下载
💾 28
安装
1
版本
#latest

概述

md-to-page

Convert Markdown into polished, scrollable wide-screen HTML pages with built-in dark/light theme toggle.

Quick Start

python3 SKILL_DIR/scripts/md_to_page.py INPUT.md OUTPUT.html [options]

Options

FlagDescriptionDefault
----------------------------
--embed-imagesCompress local images (Pillow) and embed as base64 data URIsoff
--title TEXTOverride HTML page titleFirst H1
--footer TEXTCustom footer text"Generated by md-to-page"

Features

Standard Markdown

  • H1 → full-screen hero title (first paragraph under H1 = subtitle)
  • H2 → numbered section dividers (01, 02, ...)
  • H3/H4 → section/sub-section headings
  • Bold, italic, inline code, links, images
  • Unordered and ordered lists
  • Fenced code blocks with syntax display
  • Blockquote callouts (>, > 💡, > ⚠️)
  • Markdown tables → styled responsive tables
  • Horizontal rules → ignored (sections provide visual separation)

File Trees

workspace/

├── SOUL.md # System prompt

├── memory/

│ └── 2026-03-01.md

└── skills/

::: Directive Blocks

Extended syntax using fenced ::: blocks for rich components.

Card

::: card
Content with **bold** and `code`
:::

Card Grid

::: card-grid
::: card {icon=💬 title="Chat"}
Natural language interface
:::
::: card {icon=📄 title="Docs"}
Auto-generated documentation
:::
:::

Compare (Good vs Bad)

::: compare
::: side bad {label="❌ Before"}
Manual copy-paste workflow
:::
::: side good {label="✅ After"}
Automated pipeline
:::
:::

Flow

::: flow
Write docs → AI helps write → *Store in Confluence* → AI reads → Summary
:::
  • Normal text = regular step
  • text = highlighted step (accent border + glow)
  • ~text~ = dead/deprecated step (strikethrough + faded)
  • Arrows rendered as connector arrows

Deprecated flow with opacity:

::: flow dead-suffix
Store in Confluence ← No longer needed
:::

Quote Block

::: quote
The best interface is no interface.
— Golden Krishna
:::

Layers

::: layers
Personal | Your preferences, projects, habits
Team | Onboarding, SOP, tech decisions
Organization | Company policies, cross-BU knowledge
:::

Format: Tag | Description per line. Each layer gets a distinct color (up to 4 built-in colors).

Cycle

::: cycle negative
Wrote docs → Nobody updates → Outdated → Nobody reads → ↻
:::

::: cycle positive
Write to memory → AI answers → People use → AI updates → ↻
:::

Polarity: negative (pink) or positive (cyan).

Command List

::: cmd-list
/status — Check agent status
/model — Switch model
/new — Reset context
:::

Format: command — description per line, rendered in monospace with accent-colored keys.

Image Embedding

With --embed-images, local image paths in !alt are:

  1. Loaded from disk (relative to the input .md file)
  2. Compressed via Pillow (max 1200px wide, JPEG quality 75)
  3. Embedded as data:image/jpeg;base64,... URIs
  4. If Pillow is not installed, raw file bytes are base64-encoded without compression

URLs (http://, https://) are left unchanged.

Theme Toggle

Every generated page includes a 🌙/☀️ toggle button (top-right corner) that switches between dark and light themes. Theme preference is saved to localStorage.

  • Dark (default): Deep navy background, gradient accents, purple/cyan colors
  • Light: White background, subtle gray cards, clean typography

Markdown Tables

Standard pipe tables are auto-detected and rendered as styled tables:

| Feature | Status |
|---------|--------|
| Dark mode | ✅ |
| Light mode | ✅ |

When NOT to Use

  • For slide decks / presentations → use presentation-generator or slides-cog
  • For Obsidian notes → use obsidian-markdown

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-31 01:02 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

Humanizer

biostartechnology
消除AI写作痕迹,使文本更自然真实。基于维基百科"AI写作特征"指南,识别并修正夸张象征、宣传用语、肤浅-ing分析、模糊归因、破折号滥用、三项排比、AI词汇、负面平行结构及冗长连接词等模式。
★ 857 📥 199,399
content-creation

AdMapix

fly0pants
广告情报与应用数据分析助手,支持搜索广告素材、分析应用排名、下载量、收入及市场洞察,用于广告素材和竞品分析。
★ 295 📥 136,428
content-creation

Baidu Wenku AIPPT

ide-rea
使用百度文库 AI 智能生成 PPT,自动根据内容选择模板。
★ 66 📥 46,142