deepskyblue86/claude-markdown-mod
이 mod 소개
md-render는 스트리밍이 끝난 뒤 어시스턴트 응답을 색상 Markdown으로 다시 스타일링하는 Claude Code mod입니다. 제목, 굵게, 기울임, 취소선, 인라인 코드, 목록, 인용 및 링크를 설정 가능한 색상으로 렌더링하며, 펜스 코드 블록과 표는 Claude Code 자체 렌더러로 대체됩니다. 사용자 mod는 classic.MessageDisplay를 바꿀 수 없으므로 스트리밍되는 텍스트 자체는 일반 텍스트로 다시 그린 뒤 완료될 때만 스타일을 적용합니다. claude plugin marketplace add deepskyblue86/claude-markdown-mod를 실행한 뒤 claude plugin install md-render@md-render-marketplace를 실행해 설치하거나, claude --plugin-dir로 한 세션 동안 시험할 수 있습니다. 색상과 스타일 매핑은 hooks/register.tsx 상단의 CONFIG에 있으며 빌드 단계가 필요하지 않습니다. MIT 라이선스입니다.
설치
먼저 작성자의 README에서 marketplace와 플러그인 이름을 확인하세요. 저장소 구조에 따라 명령어가 달라질 수 있습니다.
claude plugin marketplace add deepskyblue86/claude-markdown-mod claude plugin install md-render
원문 / README
md-render
Claude Code mod that redraws assistant messages as colored markdown.
<table width="100%"> <tr> <th width="50%" align="center">Before</th> <th width="50%" align="center">After</th> </tr> <tr> <td width="50%" valign="top"><img width="100%" src="resources/claude.png" alt="Claude Code's default markdown rendering of examples/showcase.md"></td> <td width="50%" valign="top"><img width="100%" src="resources/claude-markdown-mod.png" alt="The same message rendered by md-render"></td> </tr> </table>Both screenshots show the reply to "Print examples/showcase.md verbatim".
| Markdown | Rendering |
|---|---|
| # Heading | bold purple |
| **bold** | bold orange |
| *italic* | italic amber |
| ***bold italic*** | bold italic |
| ~~strike~~ | strikethrough |
| `code` | green |
| - item, 1. item | orange markers, nested lists indented |
| > quote | dim │ bar, italic text |
| fenced code, tables | drawn by Claude Code's own renderer (syntax highlighting, wrapping) |
| [text](url) | the text followed by the dim address |
| images, anything else | plain text |
Unclosed **, `, ~~, or a fence (mid-stream) stay plain text until they close.
If the message text can't be read or parsing throws, the default rendering is used.
The reply streams as plain text drawn by Claude Code and is restyled when the message completes.
A mod can't change the streamed text: classic.MessageDisplay is bypassed for user mods by cc-plugin-sec-default.
Install
From a marketplace (this repo is one):
claude plugin marketplace add deepskyblue86/claude-markdown-mod
claude plugin install md-render@md-render-marketplace
Try it for one session without installing:
claude --plugin-dir /path/to/claude-markdown-mod
Configure
Colors and the style mapping are in CONFIG at the top of hooks/register.tsx.
A style's color is a key of CONFIG.colors or a raw color.
Develop
No build step: Claude Code loads hooks/register.tsx directly.
claude plugin validate .
claude plugin test .
.claude-plugin/types/ is generated by Claude Code on load and is gitignored.
License
MIT. See LICENSE.
동명의 다른 작품
- md-renderruslanfialkovskii · ★ 0
