mtmtian/cc-mods/tree/main/mods/md-prompt/plugins/md-prompt
md-prompt
입력하는 동안 Claude Code 프롬프트 상자에 Markdown을 그립니다. fenced code는 닫기 전에도 구문 강조 카드가 되고 인라인 코드, 굵게, 기울임, 목록, 작업 목록, 인용, 표, 링크, 제목도 스타일이 적용됩니다. 그림만 그리며 텍스트는 바꾸지 않습니다.
이 mod 소개
md-prompt
입력하는 동안 Claude Code 프롬프트 상자에 Markdown을 그립니다. fenced code는 닫기 전에도 구문 강조 카드가 되고 인라인 코드, 굵게, 기울임, 취소선, 목록, 작업 목록, 인용, 제목, 표, 링크도 스타일이 적용됩니다.
그림만 표시합니다. 플러그인은 초안 문자의 색만 바꾸고 문자는 절대 변경하지 않으므로 입력한 내용과 모델에 보내는 내용이 정확히 같습니다.
스크린샷, 전체 표시 목록, 문제 해결: github.com/nogu66/md-prompt.
Hooks의 동작
플러그인은 하나의 hooks 모듈 hooks/register.tsx로 구성됩니다.
| Hook | 동작 | | --- | --- | | prompt.edit | 편집 또는 붙여 넣기마다 프롬프트 초안 위에 style runs(decorations)를 추가합니다. 텍스트, 커서, 다른 플러그인의 decorations는 그대로 통과합니다 | | prompt.fill | 플러그인이나 엔진이 초안 전체를 교체하면 새 초안에 같은 style runs를 추가합니다 | | session.start | /md-prompt 명령을 등록합니다 | | command.run(/md-prompt) | 표시를 켜거나 끄고 플러그인의 enabled 설정으로 저장합니다 |
파일을 읽지 않고 프로세스를 실행하지 않으며 네트워크나 모델을 호출하지 않고 도구 호출이나 제출 내용도 건드리지 않습니다.
변경하는 설정
- md-prompt.enabled는 플러그인 자체의 Markdown painting 설정(/config의 전환)입니다. 켜면 그리고 끄면 프롬프트 상자를 일반 텍스트로 두며 기본값은 켜짐입니다. /md-prompt on | off | toggle은 $.config.set으로 이 설정 하나만 기록하며 /config에서 바꾸는 것과 같습니다.
- 환경 변수: 없음. Claude Code 2.1.285와 2.1.286에서는 function hooks를 직접 켜기 위해 CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1을 설정해야 하며 플러그인이 설정하지는 않습니다.
설치
먼저 작성자의 README에서 marketplace와 플러그인 이름을 확인하세요. 저장소 구조에 따라 명령어가 달라질 수 있습니다.
claude plugin marketplace add mtmtian/cc-mods claude plugin install md-prompt
원문 / README
md-prompt
Markdown, painted onto Claude Code's prompt box as you type. Fenced code becomes a syntax-highlighted card before you even close the fence; inline code, bold, italic, strikethrough, lists, task lists, quotes, headings, tables and links are styled too.
Paint only. The plugin colours the characters of the draft but never changes them, so what you type, and what is sent to the model, is exactly what you typed.
Screenshots, the full list of what is painted, and troubleshooting: github.com/nogu66/md-prompt.
What the hooks do
The plugin is one hooks module, hooks/register.tsx:
| Hook | What it does |
| --- | --- |
| prompt.edit | After each edit or paste, adds style runs (decorations) over the draft in the prompt box. The text, the cursor and other plugins' decorations pass through unchanged |
| prompt.fill | When the whole draft is replaced (a plugin or the engine filling the box), adds the same style runs to the new draft |
| session.start | Registers the /md-prompt command |
| command.run (/md-prompt) | Shows or switches painting on or off, and saves it as the plugin's enabled setting |
It reads no files, runs no processes, makes no network or model calls, and does not touch tool calls or what you submit.
Settings it changes
md-prompt.enabled, the plugin's own Markdown painting setting (a toggle in/config): on paints, off leaves the prompt box as plain text. The default is on./md-prompt on | off | togglewrites this one setting with$.config.set, as a change in/configwould. It changes no other setting.- Environment variables: none. On Claude Code 2.1.285 and 2.1.286 you turn on function hooks yourself with
CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1; the plugin does not set it.
