gilvt

Markdown and Mermaid

In Quick Look, .md files are shown as a rendered document by default: body text in a proportional font, code and table numbers in a monospaced font. Changes against the comparison base are marked by block: a green bar on the left for added blocks, a yellow bar for modified blocks, and fully deleted passages shown as “Deleted N lines · click to expand”.

  • S switches between the rendered view and the source diff view, keeping your position.
  • Relative links to local files open in the same Quick Look, and ⌘[ goes back; external links open in the browser.
  • Local images are shown at reading width; remote images show only their address and are not loaded.
  • Mermaid diagrams render offline in the background without requesting any network resources; on a syntax error, the source and the error message are shown, and R retries.