ClaudeMods
☰
EN
● — online · Views — times
SponsorsSubmit a project
GitHub repositories · by mtmtian

md-prompt

Paints Markdown onto Claude Code's prompt box as you type: fenced code becomes a syntax-highlighted card (even before you close the fence), and inline code, bold, italic, lists, task lists, quotes, tables, links and headings are styled. Paint only, your text is never changed.

mtmtian@mtmtian

mtmtian/cc-mods/tree/main/mods/md-prompt/plugins/md-prompt

Translated

About this mod

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 | toggle writes this one setting with $.config.set, as a change in /config would. 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.

Installation

Check the author's README for the marketplace and plugin name first. Commands may change as the repository evolves.

claude plugin marketplace add mtmtian/cc-mods
claude plugin install md-prompt
Original text / 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 | toggle writes this one setting with $.config.set, as a change in /config would. 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.

Get a badge

Is this your project? Add this badge to your README or website. It links back to this page.

Featured on ClaudeMods
Size
Theme
Markdown
HTML

Similar projects