Debian Codegraph @

docs/src/markdown/extensions/mark.md

raw
1 ---
2 icon: lucide/highlighter
3 ---
4 [:octicons-file-code-24:][_mark]{: .source-link }
5
6 # Mark
7
8 ## Overview
9
10 Mark adds the ability to insert `#!html <mark></mark>` tags. The syntax requires the text to be surrounded by double
11 equal signs. It can optionally be configured to use smart logic. Syntax behavior for smart and non-smart variants of
12 **mark** models that of [BetterEm](betterem.md#rules).
13
14 To Mark some text, simply surround the text with double `=`.
15
16 ```text title="Marking"
17 ==mark me==
18
19 ==smart==mark==
20 ```
21
22 /// html | div.result
23 ==mark me==
24
25 ==smart==mark==
26 ///
27
28 The Mark extension can be included in Python Markdown by using the following:
29
30 ```py3
31 import markdown
32 md = markdown.Markdown(extensions=['pymdownx.mark'])
33 ```
34
35 ## Options
36
37 Option | Type | Default | Description
38 ------------ | ---- | ----------- |------------
39 `smart_mark` | bool | `#!py3 True` | Use smart logic with mark characters.