Module

plugins.strikethrough

Strikethrough plugin for Patitas.

Adds support for deleted syntax.

Usage:

>>> md = create_markdown(plugins=["strikethrough"])
>>> md("~~deleted text~~")
'<p><del>deleted text</del></p>'

Syntax:

texttext

Strikethrough can contain other inline elements:

bold deletedbold deleted

Thread Safety:

This plugin is stateless and thread-safe.

Classes

StrikethroughPlugin 1
Plugin adding ~~strikethrough~~ support. Extends inline parsing to recognize ~~ delimiters. Enabl…

Plugin adding strikethrough support.

Extends inline parsing to recognize ~~ delimiters.

Enable via Markdown(plugins=["strikethrough"]).

Note: The actual parsing is controlled by ParseConfig.strikethrough_enabled, which is set by the Markdown class based on the plugins list.

Methods

name 0 str
property
def name(self) -> str
Returns
str