Overview

Bold, italic, underline, highlight, strikethrough, hard line breaks and math.

How you write it in Obsidian

This shows **bold**, *italic*, ***bold italic*** and <u>underlined</u> text.

Highlighted with ==marked text== and struck through with ~~struck text~~.

A single line break
becomes a hard break in the PDF.

Inline math $E = mc^2$ and display math $$\sum_{i=1}^{n} i = \frac{n(n+1)}{2}$$.

What Obsitex generates

This shows \textbf{bold}, \textit{italic}, \textbf{\textit{bold italic}} and \underline{underlined} text.

Highlighted with \hl{marked text} and struck through with \sout{struck text}.

A single line break\\
becomes a hard break in the PDF.

Inline math $E = mc^2$ and display math $$\sum_{i=1}^{n} i = \frac{n(n+1)}{2}$$.

The mapping at a glance:

Obsidian LaTeX
**bold** \textbf{…}
*italic* \textit{…}
***bold italic*** \textbf{\textit{…}}
<u>underline</u> \underline{…}
==highlight== \hl{…}
~~strikethrough~~ \sout{…}

How it looks in the PDF

<aside> 📸

Screenshot needed: the compiled PDF of the paragraph above, showing bold, italic, underline, a yellow highlight and struck-through text.

</aside>

Raw LaTeX — when Markdown isn't enough

Sometimes you need a LaTeX command Markdown has no symbol for. There are two ways to drop LaTeX in directly.

Inline — wrap it in a single-backtick span; the content is passed through unchanged (it is raw LaTeX, not monospace text). For example, the \LaTeX logo in a sentence produces:

Insert a raw LaTeX command inline, such as the \LaTeX logo.

As a block — a latex-tagged fence is inserted into the document verbatim:

\begin{center}
Raw LaTeX stays exactly as written.
\end{center}

A single-backtick span is raw LaTeX, not monospace — so %, _ or & inside it are not escaped and would break compilation. For literal monospace text, write \texttt{…} yourself.

Code blocks

A fenced block tagged with an ordinary language (like python) is rendered as verbatim text — useful when you actually want to show source code:

def greet(name):
    return f"Hello, {name}"