Skip to main content
This page covers advanced formatting elements that go beyond basic Markdown. For the foundational syntax, see Basic formatting.

Tables

Create tables using vertical bars (|) to separate columns and hyphens (-) to define the header row:
The vertical bars on either side of the table are optional, but including them improves readability. Cells don’t need to be perfectly aligned, but the header row must contain at least two hyphens per column:
In Live Preview, right-click a table to add or delete columns and rows, or to sort and move them using the context menu. You can also insert a table using the Insert Table command from the Command Palette.

Aligning table columns

Align column content by adding colons (:) to the header row separator:

Formatting content within a table

You can use basic Markdown formatting (bold, italic, inline code) inside table cells. To use a vertical bar | inside a cell — for example in an alias or image resize — escape it with a backslash:

Math

Obsidian supports math expressions using MathJax and LaTeX notation.

Block math

Surround the expression with double dollar signs ($$) to display it as a block:

Inline math

Wrap the expression in single $ symbols to display it inline within a sentence:
For a syntax reference, see the MathJax basic tutorial and quick reference. For supported packages, see The TeX/LaTeX Extension List.

Mermaid diagrams

Obsidian supports Mermaid for creating diagrams and charts, including flow charts, sequence diagrams, and timelines. Create a diagram by opening a mermaid code block:
Use Mermaid’s Live Editor to build and preview diagrams before adding them to your notes.

Linking notes from a diagram

You can create internal links inside a diagram by attaching the internal-link class to nodes:
For diagrams with many nodes, assign the class to a predefined list of node letters:
Each letter node becomes an internal link, with the node text as the link label.
If a note name contains special characters, wrap it in double quotes: class "⨳ special character" internal-link. Internal links from diagrams do not show up in Graph view.
For full diagram syntax, refer to the official Mermaid docs.