Tilde optionally adds two different features which are syntactically built around the ~
character: delete which inserts <del></del>
tags and subscript which inserts <sub></sub>
tags.
The Tilde extension can be included in Python Markdown by using the following:
import markdown
md = markdown.Markdown(extensions=['pymdownx.tilde'])
Delete
To wrap content in a delete tag, simply surround the text with double ~
. You can also enable smart_delete
in the options. Smart behavior of delete models that of BetterEm.
Delete me
SubscriptTo denote a subscript, you can surround the desired content in single ~
. It uses Pandoc style logic, so if your subscript needs to have spaces, you must escape the spaces.
CH~3~CH~2~OH
text~a\ subscript~
Options Option Type Default Description smart_delete
bool True
Use smart logic with delete characters. delete
bool True
Enable delete feature. subscript
bool True
Enable subscript feature. October 17, 2024
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4