@dhoaibao/preview-markdown
Inline Markdown preview cards for Pi with theme switching and source copying.
Package details
Install @dhoaibao/preview-markdown from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@dhoaibao/preview-markdown- Package
@dhoaibao/preview-markdown- Version
0.1.2- Published
- Aug 21, 2026
- Downloads
- 413/mo · 13/wk
- Author
- dhoaibao
- License
- unknown
- Types
- extension
- Size
- 20.9 KB
- Dependencies
- 0 dependencies · 2 peers
Pi manifest JSON
{
"extensions": [
"./extensions/b-agentic-preview-markdown.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
@dhoaibao/preview-markdown
A standalone Pi package for inline Markdown previews with Tokyo Night Moon/Day cards, global theme switching, active-branch preview history, and exact source copying.
Install
Install with Pi:
pi install npm:@dhoaibao/preview-markdown
The package registers the preview_markdown tool and these commands:
/preview-markdown:render <prompt>requests a one-response preview./preview-markdown:themeselects the globally persisted Moon or Day theme./preview-markdown:listlists the 20 most recent successful active-branch previews for exact Markdown source copying.Ctrl+Shift+Mcopies the latest preview source.
Raw GitHub alternative
The npm package and the raw installer use the same canonical extension source:
extensions/b-agentic-preview-markdown.ts within this package.
For a version-pinned GitHub install without the npm package, use the standalone raw installer after the corresponding public release tag exists:
curl -fsSL https://raw.githubusercontent.com/dhoaibao/b-agentic/v0.1.0/pi/scripts/install-preview-markdown.sh | bash -s -- v0.1.0
The raw installer preserves unrelated Pi files and installs no other b-agentic
extension or dependency. Run /reload in Pi after either installation route.
Scope
This package contains only the Markdown preview extension and package-facing documentation. Pi itself and its core extension packages are peer dependencies; they are not bundled in this package.