class documentation

Emphasis processor for handling strong and em matches inside asterisks.

Method build_double Return double tag.
Method build_double2 Return double tags (variant 2): `<strong>text <em>text</em></strong>`.
Method build_element Element builder.
Method build_single Return single tag.
Method handleMatch Parse patterns.
Method parse_sub_patterns Parses sub patterns.
Constant PATTERNS Undocumented

Inherited from InlineProcessor:

Method __init__ Create an instant of an inline pattern.
Instance Variable compiled_re Undocumented
Instance Variable md Undocumented
Instance Variable pattern Undocumented
Instance Variable safe_mode Undocumented

Inherited from Pattern (via InlineProcessor):

Method getCompiledRegExp 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_EXCLUDES Undocumented
def build_double(self, m, tags, idx): (source)

Return double tag.

def build_double2(self, m, tags, idx): (source)

Return double tags (variant 2): `<strong>text <em>text</em></strong>`.

def build_element(self, m, builder, tags, index): (source)

Element builder.

def build_single(self, m, tag, idx): (source)

Return single tag.

def handleMatch(self, m, data): (source)
def parse_sub_patterns(self, data, parent, last, idx): (source)

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)

Undocumented

Value
[EmStrongItem(re.compile(EM_STRONG_RE, re.DOTALL|re.UNICODE),
              'double',
              'strong,em'),
 EmStrongItem(re.compile(STRONG_EM_RE, re.DOTALL|re.UNICODE),
              'double',
              'em,strong'),
 EmStrongItem(re.compile(STRONG_EM3_RE, re.DOTALL|re.UNICODE), 'double2', 'stron
...