Inline Syntax

Emphasis, strong, code, and other inline elements

1 min read 182 words

Inline elements appear within paragraphs and other block elements.

Emphasis

Use single asterisks or underscores for emphasis (italic):

This is *emphasized* text.
This is _also emphasized_ text.

Result: This is emphasized text.

Strong

Use double asterisks or underscores for strong (bold):

This is **strong** text.
This is __also strong__ text.

Result: This is strong text.

Combined

Nest emphasis and strong:

This is ***bold and italic*** text.
This is **_also bold and italic_** text.

Inline Code

Use backticks for inline code:

Use the `parse()` function.

Result: Use theparse()function.

Strikethrough

Use double tildes for strikethrough (extension):

This is ~~deleted~~ text.

See Links for full link syntax.

[Link text](https://example.com)

Images

![Alt text](image.png)
![Alt text](image.png "Optional title")

HTML Entities

© —  

Escaping

Use backslash to escape special characters:

\*not emphasized\*
\[not a link\]

Line Breaks

End a line with two spaces for a hard break:

First line  
Second line