pi-umbra-preview
v0.1.2
Published
Render a document with pandoc and open it in the browser, from inside pi.
Maintainers
Readme
pi-umbra-preview
/umb-preview renders a document with pandoc and opens it in the browser.
Reading a Markdown file in a terminal means reading its source: fences, pipes, link brackets. This renders it instead. pandoc turns the document into one self-contained HTML file and the system browser opens that.
A PDF or an HTML file is opened directly. pandoc reads neither, and converting a PDF to HTML in order to look at a PDF is work with nothing at the end of it.
pi-umbra-preview/
├── checks
│ └── umbra-preview.check.ts
└── extensions
└── umbra-preview.tsNeeds pandoc
Not bundled, never installed for you. It is looked for when a preview is asked for, not at load, so a missing pandoc costs one message rather than a failed extension. The message names the install command for the platform it is printed on.
| | |
|---|---|
| Windows | winget install --id JohnMacFarlane.Pandoc -e |
| macOS | brew install pandoc |
| Linux | sudo apt install pandoc |
Install
pi install npm:pi-umbra-previewMIT.
