class documentation
class AsteriskProcessor(InlineProcessor): (source)
Known subclasses: markdown.inlinepatterns.UnderscoreProcessor
Emphasis processor for handling strong and em matches inside asterisks.
Method | build |
Return double tag. |
Method | build |
Return double tags (variant 2): `<strong>text <em>text</em></strong>`. |
Method | build |
Element builder. |
Method | build |
Return single tag. |
Method | handle |
Parse patterns. |
Method | parse |
Parses sub patterns. |
Constant | PATTERNS |
Undocumented |
Inherited from InlineProcessor
:
Method | __init__ |
Create an instant of an inline pattern. |
Instance Variable | compiled |
Undocumented |
Instance Variable | md |
Undocumented |
Instance Variable | pattern |
Undocumented |
Instance Variable | safe |
Undocumented |
Inherited from Pattern
(via InlineProcessor
):
Method | get |
Return a compiled regular expression. |
Method | type |
Return class name, to define pattern type |
Method | unescape |
Return unescaped text given text with an inline placeholder. |
Constant | ANCESTOR |
Undocumented |
Parses sub patterns. `data` (`str`): text to evaluate. `parent` (`etree.Element`): Parent to attach text and sub elements to. `last` (`etree.Element`): Last appended child to parent. Can also be None if parent has no children. `idx` (`int`): Current pattern index that was used to evaluate the parent.
PATTERNS =
(source)
overridden in
markdown.inlinepatterns.UnderscoreProcessor
Undocumented
Value |
|