MCPcopy Create free account
hub / github.com/Python-Markdown/markdown / LegacyUnderscoreProcessor

Class LegacyUnderscoreProcessor

markdown/extensions/legacy_em.py:30–39  ·  view source on GitHub ↗

Emphasis processor for handling strong and em matches inside underscores.

Source from the content-addressed store, hash-verified

28
29
30class LegacyUnderscoreProcessor(UnderscoreProcessor):
31 """Emphasis processor for handling strong and em matches inside underscores."""
32
33 PATTERNS = [
34 EmStrongItem(re.compile(EM_STRONG2_RE, re.DOTALL | re.UNICODE), 'double', 'strong,em'),
35 EmStrongItem(re.compile(STRONG_EM2_RE, re.DOTALL | re.UNICODE), 'double', 'em,strong'),
36 EmStrongItem(re.compile(STRONG_EM_RE, re.DOTALL | re.UNICODE), 'double2', 'strong,em'),
37 EmStrongItem(re.compile(STRONG_RE, re.DOTALL | re.UNICODE), 'single', 'strong'),
38 EmStrongItem(re.compile(EMPHASIS_RE, re.DOTALL | re.UNICODE), 'single', 'em')
39 ]
40
41
42class LegacyEmExtension(Extension):

Callers 1

extendMarkdownMethod · 0.85

Calls 1

EmStrongItemClass · 0.85

Tested by

no test coverage detected