Skip to content

Mark

Overview

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 =.

Marking
==mark me==

==smart==mark==

mark me

smart==mark

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

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

Options

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