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

Class UnderscoreProcessor

markdown/inlinepatterns.py:677–687  ·  view source on GitHub ↗

Emphasis processor for handling strong and em matches inside underscores.

Source from the content-addressed store, hash-verified

675
676
677class UnderscoreProcessor(AsteriskProcessor):
678 """Emphasis processor for handling strong and em matches inside underscores."""
679
680 PATTERNS = [
681 EmStrongItem(re.compile(EM_STRONG2_RE, re.DOTALL | re.UNICODE), 'double', 'strong,em'),
682 EmStrongItem(re.compile(STRONG_EM2_RE, re.DOTALL | re.UNICODE), 'double', 'em,strong'),
683 EmStrongItem(re.compile(SMART_STRONG_EM_RE, re.DOTALL | re.UNICODE), 'double2', 'strong,em'),
684 EmStrongItem(re.compile(SMART_STRONG_RE, re.DOTALL | re.UNICODE), 'single', 'strong'),
685 EmStrongItem(re.compile(SMART_EMPHASIS_RE, re.DOTALL | re.UNICODE), 'single', 'em')
686 ]
687 """ The various strong and emphasis patterns handled by this processor. """
688
689
690class LinkInlineProcessor(InlineProcessor):

Callers 1

build_inlinepatternsFunction · 0.85

Calls 1

EmStrongItemClass · 0.85

Tested by

no test coverage detected