Link To Html logo

Link To Html

Community
LjyYano
link-to-html

Use when the user provides a podcast/video/article URL or an existing Obsidian note (.md) and wants a self-contained HTML viewer page generated. Produces a Podwise-inspired single-file HTML with sidebar, episode header, 6 tabs (Summary, Mindmap, Transcript, Keywords, Highlights, Shownotes), dark/light theme, and markmap mindmap rendering.

Overview

PublisherLjyYano
Repositoryskill-pack
Skill namelink-to-html
Stars
43
Forks
4
Bundled files
1
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by LjyYano on GitHub. Read the source before you install it.

Installation

Install the Link To Html AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/LjyYano/skill-pack/tree/main/skills/link-to-html
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/LjyYano/skill-pack.git /tmp/skill-pack
mkdir -p .claude/skills
cp -r /tmp/skill-pack/skills/link-to-html .claude/skills/link-to-html
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Link To Html in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Link To Html on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Link To Html is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Podcast Note → HTML Viewer

Overview

Read an Obsidian podcast note (.md) and produce a single self-contained HTML file with a Podwise-inspired UI: sidebar navigation, episode header, 6 tabbed panels, dark/light theme toggle, and interactive markmap mindmap.

Input: Podcast URL (will invoke link-to-note skill first) OR path to an existing .md podcast note.

Output: Same directory as the .md, same filename but .html extension.

Example: AI/Podcasts/商业小样37 意想不到的 AI 股 康宁.md → AI/Podcasts/商业小样37 意想不到的 AI 股 康宁.html


Prerequisites

  • The .md note must follow the link-to-note skill's template (frontmatter + 摘要 + Takeaways + 思维导图 + 章节导读 + 金句 + 详细论点 + 完整转录)
  • Internet access for CDN scripts (d3, markmap-lib, markmap-view)

Workflow

User input
  ├─ Podcast URL → invoke link-to-note skill → get .md path → continue ↓
  └─ .md file path → read .md → extract data → fill HTML template → write .html

Step 1: If input is a URL, generate the note first

Invoke the link-to-note skill with the URL. Wait for it to finish and produce the .md file. Then continue to Step 2.

Step 2: Read and parse the .md note

Extract the following data from the note:

DataSource in .mdHow to extract
TITLEfrontmatter title or first # headingDirect read
PODCAST_NAMEfrontmatter authorTake part before · (e.g. 商业就是这样 · 肖文杰 / 约小亚 → 商业就是这样)
DATE_DISPLAYfrontmatter dateFormat as DD Mon YYYY (e.g. 2026-03-30 → 30 Mar 2026)
DURATIONfrontmatter durationUse as-is (e.g. "14:36" → 14m36s for display)
PLATFORMfrontmatter platformUse as-is
SOURCE_URLfrontmatter sourceFor links
TAGSfrontmatter tagsArray of tag strings
SUMMARY_BODY## 摘要 section, first paragraphText between ## 摘要 and > [!summary]
TAKEAWAYS[]> [!summary] Takeaways bullet listEach - item as a string
MINDMAP_MDContent inside ```markmap code blockRaw markdown text between code fences
OUTLINES[]## 章节导读 table rowsParse `
HIGHLIGHTS[]> [!quote] ~ MM:SS calloutsParse timestamp and quote text → {ts, text}
DETAILS_HTML## 详细论点 through ## 个人思考Convert each ### subsection to HTML <div class="detail-section">
THOUGHTS[]## 个人思考 checkbox itemsEach - [ ] text as a string
TURNS[]> [!note]- 完整转录 contentParse **[MM:SS]** Text → {ts, text} (no speaker)
SHOWNOTES_HTML> [!info]- 节目 Shownotes contentConvert key-value pairs to <dl class="shownotes-grid">
COVER_ZHFirst 2 chars of PODCAST_NAMEFor cover placeholder
COVER_ENEnglish equivalent if available, else omitFor cover placeholder

Step 3: Generate KEYWORDS array

Combine:

  1. All frontmatter tags (excluding generic ones like 播客笔记)
  2. Extract top 10-15 high-frequency nouns/terms from the summary body

Deduplicate and limit to ~25 keywords.

Step 4: Fill the HTML template

Read template.html from the skill directory. Replace all {{PLACEHOLDER}} tokens with extracted data. Write the result to the output .html file.


Template Placeholders

The template file is template.html (same directory as this SKILL.md). All {{TOKEN}} strings are replaced with episode-specific data:

PlaceholderSourceExample value
{{TITLE}}frontmatter title商业小样37 | "意想不到的 AI 股":康宁
{{PODCAST_NAME}}frontmatter author, before ·商业就是这样
{{COVER_ZH}}First 2 chars of PODCAST_NAME商业
{{COVER_ZH_FIRST_CHAR}}First char of PODCAST_NAME商
{{COVER_EN}}English equivalent or empty stringJUST BUSINESS
{{COVER_GRADIENT_START}}From gradient palette#ff7a4e
{{COVER_GRADIENT_END}}From gradient palette#ee4f3a
{{DATE_DISPLAY}}Formatted from frontmatter date30 Mar 2026
{{DURATION_DISPLAY}}From frontmatter duration14m36s
{{PLATFORM}}From frontmatter platformApple Podcasts
{{SUMMARY_BODY}}## 摘要 first paragraph(full text)
{{TAKEAWAYS_HTML}}<li class="takeaway">...</li> items(HTML string)
{{OUTLINES_JSON}}JSON array[{ts:'00:00',text:'...'}]
{{TURNS_JSON}}JSON array[{ts:'00:02',text:'...'}] (no speaker)
{{HIGHLIGHTS_JSON}}JSON array[{ts:'01:55',text:'...'}]
{{KEYWORDS_JSON}}JSON array of strings['康宁','AI',...]
{{MINDMAP_MD}}Raw markmap markdown (escape backticks)(multiline string)
{{HIGHLIGHTS_COUNT}}Number of highlights7
{{SHOWNOTES_CONTENT}}Full shownotes HTML block(meta info + details + thoughts)

Generating SHOWNOTES_CONTENT

Build the HTML from three parts:

  1. Meta info card: <div class="meta-info">...</div> + <h2>{{TITLE}}</h2> + <p>{{description}}</p> + <dl class="shownotes-grid">...</dl> (from shownotes callout key-value pairs)
  2. Detail sections: Each ### subsection under ## 详细论点 → <div class="detail-section"><h3>...</h3><p>...</p><ul>...</ul><div class="tip-box">...</div></div>
  3. Personal thoughts: ## 个人思考 checkboxes → <div class="personal-thoughts">...</div>

Cover Placeholder Rules

  • Use the podcast name's first 2 Chinese characters for cover-zh
  • Use an uppercase English translation/abbreviation for cover-en if available
  • Background gradient: pick from these palettes based on podcast name hash:
    ['#ff7a4e','#ee4f3a'], ['#3b82f6','#1d4ed8'], ['#10b981','#059669'],
    ['#f59e0b','#d97706'], ['#8b5cf6','#6d28d9'], ['#ec4899','#be185d']
  • Apply to .episode-cover background, .mini-cover background, and .mini-play-btn is not affected

Critical Implementation Notes

  1. markmap dark mode text: Must use CSS variable override --markmap-text-color:#ffffff on .mindmap-wrap .markmap in dark theme. Do NOT use fill on SVG text or inline <style> injection — markmap uses foreignObject with HTML divs, not SVG text.

  2. CDN load order: d3 → markmap-lib → markmap-view. All three are required.

  3. Transcript search: Use <mark> with inline style for highlighting. Escape regex special chars in search term.

  4. No speaker labels. Transcript turns render as ts + text only; the .speaker-chip element is not emitted. Upstream link-to-note also omits speaker labels (过往 diarization / shownotes-inference 都不稳定).

  5. The template file (template.html) contains all static CSS, HTML structure, and JS logic — only the {{PLACEHOLDER}} tokens change between episodes.


Quick Reference

Input: URL or .md path
  → (if URL) invoke link-to-note → get .md
  → Parse .md → extract TITLE, PODCAST_NAME, DATE, DURATION, PLATFORM,
                 SUMMARY, TAKEAWAYS, MINDMAP_MD, OUTLINES, HIGHLIGHTS,
                 TURNS (ts+text, no speaker), KEYWORDS, DETAILS, THOUGHTS, SHOWNOTES
  → Fill HTML template (copy static parts from reference)
  → Write to same-dir .html

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Link To Html AI skill do?

Use when the user provides a podcast/video/article URL or an existing Obsidian note (.md) and wants a self-contained HTML viewer page generated. Produces a Podwise-inspired single-file HTML with sidebar, episode header, 6 tabs (Summary, Mindmap, Transcript, Keywords, Highlights, Shownotes), dark/light theme, and markmap mindmap rendering.

Why use Link To Html on TypingMind?

Because you install it once and use it with any model. Link To Html is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Link To Html in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/LjyYano/skill-pack/tree/main/skills/link-to-html. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Link To Html?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Link To Html?

As many as you like. As long as a model supports skills, you can use Link To Html with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Link To Html AI skill free?

Yes. It is published on GitHub by LjyYano under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇