@zhachory1/mewrite-markdown-preview
Rendered markdown + LaTeX preview for mewrite-code, with terminal, browser, and PDF output
Package details
Install @zhachory1/mewrite-markdown-preview from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@zhachory1/mewrite-markdown-preview- Package
@zhachory1/mewrite-markdown-preview- Version
1.3.0- Published
- Aug 4, 2026
- Downloads
- 2,248/mo · 562/wk
- Author
- zhachory1
- License
- MIT
- Types
- extension
- Size
- 132 KB
- Dependencies
- 1 dependency · 2 peers
Pi manifest JSON
{
"extensions": [
"./index.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
@zhachory1/mewrite-markdown-preview
Rendered markdown + LaTeX preview for Me Write Code — terminal, browser, and PDF output.
Loaded as a @zhachory1/mewrite-code extension; not intended as a standalone library.
Attribution
Derived from pi-markdown-preview
by Oliver MacLaren, used under the MIT License. The original copyright and
permission notice is preserved in LICENSE.
Install
Bundled with @zhachory1/mewrite-code by default. To load explicitly:
mewrite --extension @zhachory1/mewrite-markdown-preview "render this README"
What it does
- Renders markdown to a paginated, styled terminal view.
- Exports the same rendered output to a single-file HTML page or PDF via headless Chrome.
- Handles LaTeX math via KaTeX.
License
MIT — see LICENSE. Includes the original copyright notice from
pi-markdown-preview.