SSkilltecabyclaudinhocode
Enviar skill
← Voltar para o catálogo

mdrise

Escrita e Conteúdo

Automatically maintain a styled HTML mirror of any Markdown. Converts .md into a single self-contained .html that preserves every word verbatim, with inlined CSS, distinctive typography, a floating side table-of-contents, and a visual style auto-selected to match the content's medium (book page, docs site, or landing page). Works in any script (Latin, CJK, Arabic and Hebrew RTL, Cyrillic, Devanaga

2estrelas
Ver no GitHub ↗Autor: YukiOvObLicença: MIT

Markdown → Styled HTML

Convert a Markdown source file into a single self-contained HTML file that renders the same content as a finished web page — every word preserved, presented with deliberate typography, layout, and visual identity.

The two invariants

These rules together define the skill. Everything else serves them.

  1. Text fidelity — every word, sentence, list item, code snippet, link, table cell, and blockquote in the source Markdown appears unchanged in the HTML. No paraphrasing, no shortening, no "improving" the prose, no translation, no fixing what looks like a typo. The author's voice, including its imperfections, is sacred.

  2. Visual elevation — the HTML is not a vanilla <h1> + <p> render. It uses considered typography, a deliberate color system, layout structure (sections, cards, grids where appropriate), and tasteful visual enhancements chosen to match the content's tone.

If these conflict, fidelity wins. Style supports the content; it never overrides it.

A useful self-check at the end: if someone copy-pasted the rendered text out of the HTML and diffed it against the source MD's text, the diff should be empty (modulo whitespace).

Workflow

1. Read the whole source first

Read the entire MD file before writing any HTML. Picking a style without the full picture leads to a tone mismatch halfway down the page.

2. Diagnose the content's tone

Silently answer (don't write this in the output):

  • What is this? Technical README, personal essay, product launch, course notes, recipe, novel chapter, internal memo, …
  • Who's the likely reader? Developer, layperson, executive, friend, classmate, …
  • What emotional register? Precise/technical, warm/personal, urgent/promotional, contemplative/literary, playful, somber, …

3. Commit to a single aesthetic direction

Core principle — identify the medium the content imitates, and let that drive the aesthetic.

  • A literary essay imitates a book page → paper texture, serif body, ornamental dividers, narrow column.
  • A technical doc / status report imitates a documentation site (Stripe Docs, Vercel Docs, Anthropic Docs) → screen-native, crisp hierarchy, clean canvas — not paper, not serif Latin body.
  • A product / startup launch imitates a modern product landing page (Linear, Resend, Plain) → confident, designed, screen-native, bold typographic choices.
  • A recipe imitates a magazine spread. A course note imitates a notebook. A poem imitates a printed page. And so on.

Picking the right medium first prevents the most common failure mode: smuggling book-page cues into non-literary content. Cream paper backgrounds, aged-paper noise textures, serif Latin body, ❖/※/asterism dividers, drop caps, narrow paperback margins — these are reserved for literary content. A technical status report on cream paper with a serif Latin body and ❖ ornaments is a category error: it doesn't feel "carefully crafted," it feels confused. A SaaS product launch with editorial paper textures is the same mistake.

Don't blend three styles into mush. Pick one direction and execute with precision:

Content typeDirection (imitate)Avoid
Open-source dev tool READMEDocumentation site (Stripe / Vercel / Anthropic docs): clean white or true-dark canvas, crisp sans body for Latin, mono for code, structured hierarchy, plenty of negative spaceCream paper, serif Latin body, aged-paper noise, ❖ dividers, drop caps — anything whispering "book"
Product or startup launch READMEModern product landing page (Linear / Resend / Plain): bold designed surface, screen-native, often dark or stark-minimal, distinctive display type, asymmetric layoutsEditorial / book-page hybrids, paperback paper textures, "warm paper + dark code" combos, anything that reads as printed
Technical project status / audit reportEngineering documentation surface: strong hierarchy, mono numerals, tabular data crisp. A warm off-white background is fine, but the surface stays digital — no paper texture, no aged-paper noise. Latin body should be sans, mono for data. Chinese body can be Noto Serif SC (that's a normal documentation choice for CJK, not a "book" signal on its own)Aged-paper noise, ❖ ornaments, drop caps, Latin serif body, calligraphic display fonts on every heading — the accumulation of these reads as "book", which this isn't
Personal essay / blog postBook-page editorial: serif body, narrow column (580–680px), generous line-height (~1.9), considered margins, drop caps or ornamental section-opener, classical dividers (❖, ※, asterism, or hairline rules). Should feel like a printed page from a literary magazine or quality paperback — page-like, not webpage-like. A warm cream / rice-paper canvas with subtle radial gradient is often the right moveWebpage chrome, hero CTAs, feature grids, modern landing tropes
Recipe / how-to guideFriendly magazine spread: warm palette, numbered steps as cards, ingredient call-out boxesSevere / brutalist coldness
Course / study notesNotebook: clear hierarchy, highlight boxes for key concepts, margin annotation feel
Poetry / literary writingPage-like canvas: warm paper background, large negative space, refined serif (Noto Serif SC / Source Han Serif for Chinese), single restrained accent. Vertical rhythm matters more than visual flair. A handwritten or brush-style accent font (Ma Shan Zheng, ZCOOL XiaoWei) on the title only is fine — never on bodyAnything digital-screen-native, card grids, landing-page tropes
Conference talk / pitchSlide-like sections: bold display type, full-bleed color blocks, big numbersPaper/book aesthetics

The book-page reservation is the most important boundary in this table. When the content type doesn't appear above, ask: "what real-world artifact does this most resemble?" and pick the matching aesthetic — but the answer is almost never "a book" unless the content is genuinely literary.

4. Pick concrete style tokens before coding

Decide these explicitly first — don't drift into defaults mid-write:

  • Font pair — one display font for headings + one body font. AVOID generic AI defaults (Inter, Roboto, Arial, system-ui, default sans). Reach for distinctive Google Fonts. Match the family to the medium you're imitating:
    • For technical docs / status reports / product launches (screen-native content): Latin body should be a distinctive sans — Bricolage Grotesque, Manrope, Outfit, Sora, Geist, Space Grotesque, IBM Plex Sans, Inter Tight (NOT plain Inter). Use a mono for code / numerals / data: JetBrains Mono, Geist Mono, Space Mono, IBM Plex Mono. Display can be a distinctive serif (Fraunces, Instrument Serif) used as an accent — but body stays sans.
    • For literary essays / poetry (book-page content): Latin body should be a quality serif — Newsreader, Crimson Pro, Libre Caslon, EB Garamond, Spectral, Lora, IBM Plex Serif. Display can be more expressive (Fraunces, DM Serif Display, Playfair Display).
    • For Chinese content in any medium: Noto Serif SC and Source Han Serif are appropriate for body text across both technical and literary use (CJK serif is not a "book-only" signal the way Latin serif is). LXGW WenKai (霞鹜文楷) is warmer and works well for literary content. Reserve brush-style fonts (Ma Shan Zheng, ZCOOL XiaoWei) for literary titles or signature lines only — never on technical content, never on body.
  • Color palette — 1 background, 1 body text, 1 accent, 1 muted/secondary. Skip the purple-gradient-on-white reflex. Consider warm off-whites, dark earth tones, single bold accent against neutral, paper-and-ink monochrome with one color of restraint.
  • Layout width — narrow column (640–720px) for prose, wider with sidebar for technical docs, full-bleed sections for landing-page energy.

5. Emit the HTML

A single self-contained

Como adicionar

/plugin marketplace add YukiOvOb/mdrise

O comando exato pode variar conforme o repositório. Confira o README no GitHub.

Comentários · Nenhum comentário

Entre para comentar. Entrar

  • Ainda não há comentários. Seja o primeiro.