class documentation
class SimpleTagPattern(Pattern): (source)
Known subclasses: markdown.inlinepatterns.DoubleTagPattern
, markdown.inlinepatterns.SubstituteTagPattern
Return element of type `tag` with a text attribute of group(3) of a Pattern.
Method | __init__ |
Create an instant of an inline pattern. |
Method | handle |
Return a ElementTree element from the given match. |
Instance Variable | tag |
Undocumented |
Inherited from Pattern
:
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 |
Instance Variable | compiled |
Undocumented |
Instance Variable | md |
Undocumented |
Instance Variable | pattern |
Undocumented |
overrides
markdown.inlinepatterns.Pattern.__init__
Create an instant of an inline pattern. Keyword arguments: * pattern: A regular expression that matches a pattern
overridden in
markdown.inlinepatterns.DoubleTagPattern
, markdown.inlinepatterns.SubstituteTagPattern
Return a ElementTree element from the given match. Subclasses should override this method. Keyword arguments: * m: A re match object containing a match of the pattern.