Skip to content



Mark adds the ability to insert <mark></mark> tags. The syntax requires the text to be surrounded by double equal signs. It can optionally be configured to use smart logic. Syntax behavior for smart and non-smart variants of mark models that of BetterEm.

To Mark some text, simply surround the text with double =.

Mark Example

mark me


==mark me==


The Mark extension can be included in Python Markdown by using the following:

import markdown
md = markdown.Markdown(extensions=['pymdownx.mark'])


Option Type Default Description
smart_mark bool True Use smart logic with mark characters.

Last update: April 29, 2021