Manual contents

Markdown

Writing#

In a Markdown file, Edit > Markdown and these keys help while you type:

  • Ctrl+B and Ctrl+I make the selection, or the word at the caret, bold or italic, and plain again. In other files Ctrl+B stays Go to Matching Brace.
  • Enter continues a list, a task list or a block quote and renumbers a numbered list. On an empty item it ends the list. Shift+Enter is a plain new line.
  • Tab and Shift+Tab change a list item's level. In a table they move from cell to cell and line the table up, and Tab from the last cell adds a row. Format Table lines up the table at the caret, allowing for wide characters.
  • Pasting an image saves it as image-1.png beside the document and links it. Pasting image files links them where they are.
  • Preferences > Markdown sets a folder for pasted images and turns off the Enter and Tab help.

Preview#

In Simple mode, Markdown files (.md, .markdown, ...) open with the rendered page beside the editor. Ctrl+E (View > Markdown Preview, or the eye button on the toolbar) hides or shows it in any mode. The preview follows your typing and scrolls with the editor; drag the divider to change its width. F12 (View > Markdown Reading View) shows only the rendered page; Esc, F12 or the Edit button returns to the editor.

  • CommonMark plus GitHub's extensions: tables, task lists, strikethrough, autolinks and footnotes. Fenced code blocks are coloured with TriPad's lexers and theme. Raw HTML is shown, but scripts and plug-ins never run.
  • Maths and diagrams: $...$ in a sentence, $$...$$ in a sentence or on lines of its own, and ```math and ```mermaid fences. Prices such as $5 and $10, shell text such as $HOME/bin:$PATH, an escaped \$ and anything in code stay as text. Preferences > Markdown can turn $ maths off.
  • Relative links and images are found next to the file. A link to another file opens it in TriPad, web links open in your browser and #heading links jump within the page.
  • Right-click the preview to copy, select all, export as HTML, print or turn off synchronized scrolling. File > Export Markdown as HTML saves a stand-alone web page. When WebView2 is showing the document, its diagrams are saved as SVG and its maths as MathML; otherwise they stay as text.
  • View > Open Markdown Files with Preview sets, for each mode, whether Markdown files open with the preview: on in Simple mode, off in Advanced and Expert. Ctrl+E changes only the current window.

The preview has two engines, and Preferences > Markdown chooses between them:

ChoiceWhat it does
Automatic (the default)Starts with the light Internet Explorer engine built into Windows, about 18 MB in all. When a document has a diagram or maths, the preview moves to WebView2, Microsoft Edge's engine, until you close it. That adds about 200 MB and several processes.
WebView2Always WebView2. The window stays smoother on very long documents, at a cost in memory: on a 2.2 MB file it is blocked for about 0.2 s instead of 3 to 4 s, and uses 1.4 GB instead of 0.5 GB.
Internet ExplorerAlways the light engine. Diagrams and maths stay as text.

WebView2 needs the Microsoft Edge WebView2 Runtime, which comes with Windows 11 and can be installed on Windows 10. Without it the preview stays on Internet Explorer and says so once. Neither engine is loaded until a preview opens. WebView2 keeps its cache in %LOCALAPPDATA%\TriPad\WebView2. A portable TriPad and the Microsoft Store's keep it in a WebView2 folder in their settings folder.