mcpField
P
preview

preview

github.com/companion-incDocuments10.0k125 installsUpdated today
Repository

About preview

preview renders Markdown or LaTeX artifacts through pandoc for HTML or PDF preview. It is for workflows that need a viewable rendition while retaining Markdown as the canonical deliverable.

Key features

  1. 01Render Markdown to HTML
  2. 02Render Markdown to PDF
  3. 03Check pandoc availability
  4. 04Keep Markdown as canonical output

Use cases

  1. 01Preview a Markdown report as HTML
  2. 02Create a PDF preview of a LaTeX artifact
  3. 03Check rendering prerequisites before previewing

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/companion-inc/feynman --skill preview

After installing, type/previewin Claude Code to confirm it loaded.

Details

From the project README

Preview

Render Markdown or LaTeX artifacts with pandoc through the shell. feynman setup preview checks for pandoc, and feynman doctor reports whether it is available.

pandoc outputs/<slug>.md -s -o outputs/<slug>.html   # HTML
pandoc outputs/<slug>.md -o outputs/<slug>.pdf       # PDF (needs a LaTeX engine)
open outputs/<slug>.html                             # macOS; xdg-open on Linux

Rendered HTML and PDF files are previews; the Markdown artifact stays canonical. If pandoc or a LaTeX engine is missing, say so and leave the Markdown artifact as the deliverable.

Comments

Markdown supported