Printing notes

A note, rendered for the terminal.
cdrm print notes/relativity.cdrm
cdrm print notes/relativity.cdrm --no-images   # keep math as LaTeX text
cdrm print notes/relativity.cdrm | less -R     # page a long note
cdrm print compiles a note to Conundrum's terminal target and writes it to standard output. It's the same rendering the TUI's preview shows.

What it looks like

Element In the terminal
Headings Bold, colored by level.
Bold, italic, strikethrough The terminal's own styles.
Links Underlined and clickable, in terminals that support hyperlinks (Ghostty, kitty, iTerm2, WezTerm and others).
Code blocks Syntax highlighted in 24-bit color, in a frame with the language or title.
Inline code Cyan.
Tables Drawn with box characters, keeping each column's alignment.
Lists Bullets and numbers; task lists show a mark for each status.
Block quotes, quotes A gray bar down the left side.
Admonition , Hint , Card A colored bar and title, colored by the component's emphasis .
Mermaid diagrams Drawn with text characters.
Plot Drawn with Braille characters, one color per function, with a legend.
Math Images, in terminals that support them; otherwise yellow LaTeX. See Math images.

Anything without its own look in the terminal is printed as Markdown.

When the output isn't a terminal (piped to a file or another program), math stays as text, so the output contains no image data.

Colors

Text styling uses the 16 standard colors of your terminal's palette, so headings, admonitions and the rest follow your terminal theme. Change the theme to change them.

Two colors don't come from the palette:

  • Math images are drawn in light gray, for dark themes. Set CDRM_MATH_COLOR to change it; see Math images.
  • Code blocks are highlighted with the Dracula theme. This can't be changed from the CLI yet.