@runminton/pi-markdown-highlight0.1.0
Render ==highlights== in assistant replies in the Pi terminal.
Untested on omp
This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.
Reports 0
No reports yet.
Readme
Pi Markdown Highlight
A Pi extension that turns ==important text== in assistant replies into a warm yellow highlight. The background adapts to light and dark themes and keeps the theme's text color.
Install
pi install npm:@runminton/pi-markdown-highlight
Run /reload in an open Pi session or restart Pi. Tested with Pi 1.6.1.
Try it
Ask Pi to highlight the key point in a reply:
Explain how an airplane flies. Wrap the key terms in ==double equals==.
A highlight appears as soon as the closing == arrives while a reply is streaming. Highlights also appear when you reopen a session. Keep both markers on the same Markdown source line. A highlight can contain bold text, italics, and inline code. Markers written inside code or links, or escaped with a backslash, display literally.
Rendering only
The extension only styles assistant replies in Pi's terminal UI. Pi saves the original Markdown, including the == markers, in the session and sends the same conversation text to the model. User messages, prompts, model requests, and tool behavior stay the same.
Screenshots
With highlighting · The yellow backgrounds are added by this extension. The Mermaid diagrams are rendered by a separate extension.

Before highlighting · The arrows point to literal == markers in the same reply.

Development
npm ci --legacy-peer-deps
npm test
python3 test/tui-smoke.py
The smoke test runs Pi in an isolated pseudo-terminal with a local fixture response and prints the paths to its ANSI logs.