@get-ai-native/pretty-md
v0.2.1
Published
Instantly render any Markdown file beautifully in your browser — from the terminal.
Maintainers
Readme
pretty-md
Your Markdown, rendered the way you actually want to read it.
One command. No config.

Why
You have a Markdown file. You want to read it without parsing it in a terminal, committing it to GitHub just to preview it, or opening VS Code to squint at a side panel that rewraps every five characters.
npx @get-ai-native/pretty-md README.mdOpens in your browser, typeset properly. Syntax-highlighted code, clean tables. No dark-mode-bro aesthetic, no Notion-clone sidebar, no signup wall.
Install
npm install -g @get-ai-native/pretty-mdOr skip install entirely:
npx @get-ai-native/pretty-md any-file.mdUse
pretty-md file.md # render a file
curl -s https://example.com/README.md | pretty-md # render piped input
pbpaste | pretty-md # pipe clipboard (macOS)
pretty-md # render clipboard contents (all platforms)pretty-md README.md -o out.html # save HTML instead of opening browser
pretty-md --no-open README.md # generate without openingFull options: pretty-md --help
Rendering LLM output
The fastest way to save a ChatGPT or Claude answer as a readable page:
- Copy the response from the chat interface.
- Run
pretty-mdin your terminal — no arguments needed. - Your browser opens with a fully typeset version of the answer.
pretty-md reads your clipboard automatically when no file or pipe is provided. Works on macOS, Linux (X11 and Wayland), and Windows.
Use it as a library
import { render, buildHtml } from '@get-ai-native/pretty-md';
const html = buildHtml(render('# Hello\n\nWorld'), { title: 'My Doc' });render(md)converts a markdown string to an HTML fragmentbuildHtml(fragment, { title })wraps it in a full styled documentopenInBrowser(path)opens a local file, returnstrueon success
What makes it pretty
- Typography. System fonts, generous line-height, readable font size. The stuff you'd set up yourself if you had an afternoon.
- GitHub-flavored Markdown. Tables, task lists, strikethrough, fenced code, via markdown-it.
- Zero config. No themes to pick, no CSS to import. Opinionated on purpose.
- Fast. Single file, no server, no Electron.
Who built this
Built by Get AI Native. We help engineering teams adopt AI-native workflows. pretty-md came out of wanting our own LLM output to be readable without piping it through four tools.
Contributing
PRs welcome. Fork, npm install, npm test, open a PR. See CONTRIBUTING.md.
