md-to-html
Installation
SKILL.md
Markdown to HTML
Converts markdown files to self-contained, styled HTML optimized for copying into Google Docs. Tables get proper borders, code blocks are styled, and images are embedded.
Usage
Run the script via bunx:
bunx ~/nixos-config/modules/programs/claude-code/skills/md-to-html/md-to-html.ts "<markdown-file>"
What it does
- Converts markdown to HTML via pandoc (uses
nix runif not installed) - Applies clean, modern CSS (system fonts, bordered tables, styled code blocks)
- Embeds all images as base64 (self-contained)
- Opens the result in the default browser
- User can then Cmd+A, Cmd+C, paste into Google Docs