nogu66/marp-preview/tree/main/plugins/marp-preview
marp-preview
Claude Code 패널에서 실시간 Marp 슬라이드 미리보기를 제공합니다. 모든 슬라이드를 스크롤 가능한 한 열에 렌더링하고 저장할 때 다시 렌더링하며 Claude나 편집기가 방금 바꾼 슬라이드로 스크롤합니다.
이 mod 소개
Claude Code 패널에 실시간 Marp 슬라이드 미리보기를 렌더링하는 플러그인입니다. 단일 훅 모듈(hooks/register.tsx)로 구현되어 session.start, command.run(/marp), ui.render, ui.close, session.end를 다룹니다. 덱을 찾고(grep으로 marp: true를 찾을 수도 있음), --watch --images png --allow-local-files 옵션으로 오래 실행되는 marp 프로세스를 시작해 PNG를 /tmp/marp-preview/에 쓰고 방금 바뀐 슬라이드로 패널을 스크롤합니다. 덱과 mtime은 읽지만 프로젝트에는 아무것도 쓰지 않고 네트워크에도 접근하지 않습니다(npx가 marp-cli를 가져오는 경우는 제외).
설치
먼저 작성자의 README에서 marketplace와 플러그인 이름을 확인하세요. 저장소 구조에 따라 명령어가 달라질 수 있습니다.
claude plugin marketplace add nogu66/marp-preview claude plugin install marp-preview
원문 / README
marp-preview
A live Marp slide preview in a Claude Code pane: every slide rendered in one scrolling column, re-rendered on save and scrolled to the slide Claude or your editor just changed.
Usage, requirements and troubleshooting: github.com/nogu66/marp-preview.
What the hooks do
The plugin is one hooks module, hooks/register.tsx:
| Hook | What it does |
| --- | --- |
| session.start | Registers the /marp command, and resumes following the deck if the pane is still open after a reload |
| command.run (/marp) | Finds or takes the deck, opens the pane and starts marp watching it |
| ui.render (the pane) | Draws every slide's image in one column, which the pane scrolls |
| ui.close | Stops marp when the pane closes |
| session.end | Stops marp when the session ends (not on a /clear, which keeps the pane) |
What it touches
- Files it reads: the deck you open, and its modification time once a second while the pane is open, to see that marp is keeping up. To find a deck when
/marphas no argument it runsgrepformarp: trueover the.mdfiles under the folder the session is in, then over the project. - Files it writes: none in the project. It never changes the deck.
- Processes it runs:
marp(from anode_modulesat or above the deck, elsenpx --yes @marp-team/marp-cli) with--watch --images png --allow-local-files, writing PNGs under/tmp/marp-preview/. It is one long-running process, with the browser marp starts, for as long as the pane is open: started by/marp, restarted if it dies or hangs, and ended when the pane closes, the session ends or the plugin reloads. Also thegrepabove. - Not touched: the network (beyond what
npxdoes to fetch marp-cli), the model, tool calls, the prompt, and settings. - Environment variables: none.