Emphasis processor for handling strong and em matches inside underscores.
| 675 | |
| 676 | |
| 677 | class 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 | |
| 690 | class LinkInlineProcessor(InlineProcessor): |
no test coverage detected