markdown.extensions.smarty
§
Convert ASCII dashes, quotes and ellipses to their HTML entity equivalents.
See the documentation for details.
Classes:
-
SubstituteTextPattern– -
SmartyExtension–Add Smarty to Markdown.
markdown.extensions.smarty.SubstituteTextPattern(pattern: str, replace: Sequence[int | str | etree.Element], md: Markdown)
§
Bases: HtmlInlineProcessor
markdown.extensions.smarty.SmartyExtension(**kwargs)
§
Bases: Extension
Add Smarty to Markdown.
Methods:
-
extendMarkdown–Register the processors.
Attributes:
-
config–Default configuration options.
markdown.extensions.smarty.SmartyExtension.config
instance-attribute
§
Default configuration options.
Defined Value:
markdown.extensions.smarty.SmartyExtension.extendMarkdown(md)
§
Register the processors.
| Class Instance | Registry | Name | Priority |
|---|---|---|---|
markdown.treeprocessors.InlineProcessor |
treeprocessors |
smarty |
6 |
markdown.inlinepatterns.HtmlInlineProcessor |
inlinepatterns |
html |
90 |
The HtmlInlineProcessor , above, is only used if the smart_angled_quotes option is enabled.
The InlineProcessor, above, is a separate instance from the InlineProcessor used for
standard inline parsing. It contains a collection of inline patterns dependent upon the
various configuration options.