Description

Hue Markdown in the note viewer: colored spans {ok: text}, diff spans, key caps [[Ctrl+C]], progress bars, multi-state tasks and drawn +-- callout boxes, side by side too.

Additional Information

Links:
Maintainers: spingras
Version:0.2.8
Minimum app version:3.0
Downloads: This version:2
Last updated:2026-12-04T18:26:43Z

Hue MD (.hue.md)

npm VS Code Marketplace License: MIT

Hue MD adds color spans, diff spans, key caps, progress bars, multi-state tasks and boxes to Markdown. The source stays plain text, so status reads at a glance in any editor, in a terminal diff and in the output of AI agents (how to use it with agents).

Typing Hue MD in an editor with the live preview next to it, then viewing the same file in the terminal with hue-md view

{ok: passing} · {+: added} · {-: removed} · [[Ctrl+Shift+P]] · [========..] 80%

- [x] Ship core parser
- [-] Run terminal slide deck
- [!] Resolve blocker

+-- ok Do This                      +-- warn Avoid This
| Keep raw source readable.         | Pollute notes with raw HTML.
+--                                 +--

Try it in the playground. For a longer example, see README.hue.md.

Install

Platform Get it
VS Code, Cursor, Windsurf Marketplace, Open VSX or hue-md.vsix
CLI and library npm install -g hue-md
Claude Code /plugin install hue-md --marketplace spingras/hue-md
Notepad++ (Windows x64) hue-md-npp-x64.zip, steps
Obsidian hue-md-obsidian.zip, steps
Joplin io.github.spingras.hue-md.jpl, steps
Neovim hue-md-nvim.zip, steps
GitHub.com userscript or Chromium extension, steps
Web pages hue-md.css
Snippets and Emacs hue-md-snippets.zip, snippet steps, Emacs steps (partial support)

Syntax

Construct Write
Status span {ok: passing}, {info: beta}, {note: v0.2}, {warn: 71%}, {!: blocked}
Color span {red: text}, {orange: …}, {yellow: …}, {green: …}, {blue: …}, {purple: …}, {gray: …}, {bg-yellow: text}, {#c0ffee bg-#333333: text}
Diff span {+: added}, {-: removed}
Key cap [[Ctrl+Shift+P]]
Progress bar [========..] 80% (4 to 40 bar characters, then 0% to 100%)
Task - [ ] todo, - [-] in progress, - [!] blocked, - [?] question, - [x] done

[[Project Roadmap]] (with a space) and arr[[0]] stay as they are, so wiki links and code are safe.

Boxes

A box starts with +-- and a type: info, ok, note, warn or !. Each | line shows on its own line. +-- closes the box.

+-- warn Heads Up
| Public API endpoints are rate-limited to {warn: 100 requests/min}.
| Boxes support **Markdown**, `code` and lists.
+--

All five Hue MD box types: info, ok, note, warn, and !

Put two or more boxes on the same lines, with at least two spaces between them, to show them side by side. Closed borders also work: ASCII +-- --+, Unicode ┌─ ─┐ or rounded ╭─ ─╮.

Command line

hue-md view notes.hue.md                      # colors and boxes in the terminal
hue-md slides notes.hue.md -i                 # terminal slide deck, split on ---
hue-md downgrade notes.hue.md -o notes.md     # GitHub Markdown, boxes become alerts
hue-md html notes.hue.md --standalone -o notes.html

downgrade turns boxes into GitHub alerts ([!NOTE], [!TIP], [!IMPORTANT], [!WARNING], [!CAUTION]), so a .hue.md file also reads well on GitHub. See all options.

Claude Code

The plugin teaches Claude the Hue syntax, so it writes valid .hue.md files. It adds two commands:

  • /hue-md:preview <file> shows the rendered file in a pane next to the chat and follows changes.
  • /hue-md:github <file> writes the GitHub Markdown copy next to the file.

AI agents

Agent output is read twice: as raw text in a terminal or diff, and as a rendered page. Hue reads well in both, so it suits what agents write and people read: status reports, plans, release notes and handover notes.

To teach any agent the syntax, add agents/hue.md to its instruction file: AGENTS.md, CLAUDE.md, GEMINI.md, .cursorrules or .github/copilot-instructions.md.

curl -s https://spingras.github.io/hue-md/agents.md >> AGENTS.md

To see agent output with colors and boxes in a terminal, pipe it into hue-md view -:

claude -p "Write a status report of this repo in Hue Markdown" | npx hue-md view -

The website also has an llms.txt for agents that read documentation.

For developers

npm install hue-md markdown-it
import MarkdownIt from 'markdown-it'
import hue, { css } from 'hue-md'
import { downgrade } from 'hue-md/downgrade'
import { renderAnsi } from 'hue-md/ansi'

const html = new MarkdownIt().use(hue).render('Build: {ok: passing}')
const stylesheet = css()               // light and dark theme
const gfm = downgrade(source)          // GitHub Markdown
const ansi = renderAnsi(source, { width: 80 })
  • The specification defines the v0.2 grammar with 90 executable examples.
  • The editor and browser ports highlight Hue with their own code. Each one runs the 120 spec and acceptance examples against the parser's tokens (spec/tokens.json). Examples that match: GitHub content script 111/120, Neovim 97/120, Notepad++ 93/120, VS Code TextMate grammar 73/120, Emacs 72/120. Each port lists its differences in spec-fixture.known.json next to its tests.
  • The parser passes all 652 CommonMark 0.31.2 tests. It changes nothing in 200 npm READMEs and 50 AI answers.
  • All palette colors meet WCAG AA contrast (4.5:1) in light and dark mode.
  • packages/remark-hue parses the same syntax for remark and unified (not on npm yet).
  • Run the tests with npm test.

License and support

MIT License. No telemetry or data collection: see the privacy policy.

Hue MD is free, and I build it in my own time. If it is useful to you, you can support it on Ko-fi or Patreon.