class ReferenceInlineProcessor(LinkInlineProcessor): (source)
Known subclasses: markdown.inlinepatterns.ImageReferenceInlineProcessor
, markdown.inlinepatterns.ShortReferenceInlineProcessor
Match to a stored reference and return link element.
Method | eval |
Evaluate the id portion of [ref][id]. |
Method | handle |
Return a ElementTree element from the given match and the start and end index of the matched text. |
Method | make |
Undocumented |
Constant | NEWLINE |
Undocumented |
Constant | RE |
Undocumented |
Inherited from LinkInlineProcessor
:
Method | get |
Parse data between `()` of `[Text]()` allowing recursive `()`. |
Method | get |
Parse the content between `[]` of the start of an image or link resolving nested square brackets. |
Constant | RE |
Undocumented |
Inherited from InlineProcessor
(via LinkInlineProcessor
):
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 LinkInlineProcessor
, 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 |
markdown.inlinepatterns.ShortImageReferenceInlineProcessor
, markdown.inlinepatterns.ShortReferenceInlineProcessor
Evaluate the id portion of [ref][id]. If [ref][] use [ref].
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.