class InlineProcessor(Pattern): (source)
Known subclasses: markdown.extensions.abbr.AbbrInlineProcessor
, markdown.extensions.footnotes.FootnoteInlineProcessor
, markdown.extensions.wikilinks.WikiLinksInlineProcessor
, markdown.inlinepatterns.AsteriskProcessor
, markdown.inlinepatterns.AutolinkInlineProcessor
, markdown.inlinepatterns.AutomailInlineProcessor
, markdown.inlinepatterns.BacktickInlineProcessor
, markdown.inlinepatterns.EscapeInlineProcessor
, markdown.inlinepatterns.HtmlInlineProcessor
, markdown.inlinepatterns.LinkInlineProcessor
, markdown.inlinepatterns.SimpleTagInlineProcessor
, markdown.inlinepatterns.SimpleTextInlineProcessor
Base class that inline patterns subclass. This is the newer style inline processor that uses a more efficient and flexible search approach.
Method | __init__ |
Create an instant of an inline pattern. |
Method | handle |
Return a ElementTree element from the given match and the start and end index of the matched text. |
Instance Variable | compiled |
Undocumented |
Instance Variable | md |
Undocumented |
Instance Variable | pattern |
Undocumented |
Instance Variable | safe |
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 |
markdown.inlinepatterns.Pattern.__init__
markdown.extensions.abbr.AbbrInlineProcessor
, markdown.extensions.footnotes.FootnoteInlineProcessor
, markdown.extensions.smarty.SubstituteTextPattern
, markdown.extensions.wikilinks.WikiLinksInlineProcessor
, markdown.inlinepatterns.BacktickInlineProcessor
, markdown.inlinepatterns.SimpleTagInlineProcessor
Create an instant of an inline pattern. Keyword arguments: * pattern: A regular expression that matches a pattern
markdown.extensions.abbr.AbbrInlineProcessor
, markdown.extensions.footnotes.FootnoteInlineProcessor
, markdown.extensions.wikilinks.WikiLinksInlineProcessor
, markdown.inlinepatterns.AsteriskProcessor
, markdown.inlinepatterns.AutolinkInlineProcessor
, markdown.inlinepatterns.AutomailInlineProcessor
, markdown.inlinepatterns.BacktickInlineProcessor
, markdown.inlinepatterns.EscapeInlineProcessor
, markdown.inlinepatterns.HtmlInlineProcessor
, markdown.inlinepatterns.LinkInlineProcessor
, markdown.inlinepatterns.SimpleTagInlineProcessor
, markdown.inlinepatterns.SimpleTextInlineProcessor
Return a ElementTree element from the given match and the start and end index of the matched text. If `start` and/or `end` are returned as `None`, it will be assumed that the processor did not find a valid region of text. Subclasses should override this method. Keyword arguments: * m: A re match object containing a match of the pattern. * data: The buffer current under analysis Returns: * el: The ElementTree element, text or None. * start: The start of the region that has been matched or None. * end: The end of the region that has been matched or None.
markdown.inlinepatterns.Pattern.md
markdown.extensions.smarty.SubstituteTextPattern
Undocumented