Viewers

Markdown preview

A Markdown file as a page beside the text, with no scripts and nothing loaded online.

⇧⌘P shows a Markdown file as a page beside the text, in the editor's own colors, and the page follows the text as you type. A Markdown file is not trusted, so the page runs no scripts, loads nothing from the Internet and cannot go anywhere but to a place in itself.

Good for developers and anyone who has outgrown Finder.

A Markdown file in the text editor with its rendered preview beside it.
A Markdown file in the text editor, with the page it makes beside it.
  • Beside the text

    View ▸ Preview (⇧⌘P), or the eye in the toolbar, shows a text whose language is Markdown (.md, .markdown, .mdown, or Markdown chosen in the status line) as a page beside the text. The eye is dimmed for any other language, and whether the page is on is each tab's own choice.

    Shift Command P
  • What the page shows

    The page is CommonMark with GitHub's extensions: tables, task lists, strikethrough, footnotes and links written as plain text. Images and links are relative to the file as they would be on the disk, and a picture is shown by its type, png, jpeg, gif, webp, svg and the like, up to 25 MB.

  • Following as you type

    The page follows the text a moment after the last key, without reloading or losing its place, and it scrolls with the text. A text over 16 MB is not previewed, and the page says so.

  • Colors, size and room

    The page uses the editor's own colors, font and size, so it follows the editor's theme (Light, Dark, Solarized Light or Solarized Dark) and ⌘+ and ⌘-. Drag the line between text and page to give either more room, down to a fifth of the width each; where you leave it is kept.

    Command +Command -
  • A page that runs nothing

    A Markdown file is not trusted: the page runs no scripts, loads nothing from the Internet (an image at a web address is left out), keeps nothing on the disk, and cannot go anywhere but to a place in itself. Raw HTML in the text is shown as such, as on GitHub, and no file but a picture from your disk is ever given to the page.

  • Where links go

    A link to another text file opens it in a tab of the editor, never in another app, because a script is text too and is never run. A web address opens in your browser, and anything else is shown in the Finder and not opened.