返回顶部
m

markdown-viewer

Live markdown viewer for AI pair-editing. When you collaborate, the updates render instantly. Works with any AI agent and web browser.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.2.0
安全检测
已通过
905
下载量
2
收藏
概述
安装方式
版本历史

markdown-viewer

# Live Markdown Viewer Live markdown viewer for AI pair-editing. When you collaborate, the updates render instantly. Works with any AI agent and web browser. GitHub: [wipcomputer/wip-markdown-viewer](https://github.com/wipcomputer/wip-markdown-viewer) npm: [@wipcomputer/markdown-viewer](https://www.npmjs.com/package/@wipcomputer/markdown-viewer) ## Install ```bash npm install -g @wipcomputer/markdown-viewer ``` This installs the `mdview` command globally. Zero runtime dependencies. Pure Node.js. ## Quick start Start the server (binds to 127.0.0.1 only, never exposed to the network): ```bash curl -s http://127.0.0.1:3000/ > /dev/null 2>&1 || mdview & ``` Open a file in your default browser: ```bash # macOS open "http://127.0.0.1:3000/view?path=/absolute/path/to/file.md" # Linux xdg-open "http://127.0.0.1:3000/view?path=/absolute/path/to/file.md" # Windows start "http://127.0.0.1:3000/view?path=/absolute/path/to/file.md" ``` ## How it works 1. Tell your AI coding tool to install `@wipcomputer/markdown-viewer` globally 2. Tell your AI to open a .md file in md view 3. AI opens the file in your default browser 4. Every save re-renders the page instantly. No refresh needed. Open multiple tabs to work on multiple documents at once. ## Security - Server binds to `127.0.0.1` only. It is not accessible from other machines. - The `/view?path=` parameter reads files from your local filesystem. Use `--root <dir>` to restrict access to a specific directory tree. Recommended for shared environments. - Zero npm dependencies. No supply chain risk beyond Node.js itself. ## Features - SSE-powered live reload (works in Safari, Chrome, Firefox) - Multi-file support (each tab watches its own file) - GitHub Flavored Markdown (tables, task lists, strikethrough) - Syntax highlighting (180+ languages) - Dark mode - Table of contents - Mermaid diagrams - KaTeX math equations ## Troubleshooting **Page shows the index instead of my file:** The server was started with `--root` restricting access. Restart without `--root`. **Safari stalls or shows blank page:** Hard refresh (Cmd+Shift+R) or restart the server. Safari caches SSE connections aggressively. **macOS `open` drops the query string:** Use AppleScript instead: ```bash osascript -e 'tell application "Safari" to open location "http://127.0.0.1:3000/view?path=/your/file.md"' ``` ## Notes - Server runs at `http://127.0.0.1:3000` by default. Use `mdview --port 8080` to change. - The server does not survive reboots. The curl check in quick start restarts it if needed. - Do NOT start the server with a file path argument. Always start bare (`mdview`). Starting with a path locks the server to that directory. - Drag and drop any .md file onto the homepage to view it. - Zero external requests. All dependencies bundled locally.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 markdown-viewer-1776420076 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 markdown-viewer-1776420076 技能

通过命令行安装

skillhub install markdown-viewer-1776420076

下载 Zip 包

⬇ 下载 markdown-viewer v1.2.0

文件大小: 2.14 KB | 发布时间: 2026-4-17 18:35

v1.2.0 最新 2026-4-17 18:35
- Added a new Troubleshooting section covering access restrictions, Safari caching issues, and macOS open quirks.
- Clarified Notes with guidance on not starting the server with a file path, drag-and-drop support, and that all dependencies are bundled locally.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部