Emphasis processor for handling strong and em matches inside underscores.
| 28 | |
| 29 | |
| 30 | class 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 | |
| 42 | class LegacyEmExtension(Extension): |
no test coverage detected