|
134 | 134 | # <p>He said, "'Quoted' words in a larger quote."</p> |
135 | 135 | doubleQuoteSetsRe = r""""'(?=\w)""" |
136 | 136 | singleQuoteSetsRe = r"""'"(?=\w)""" |
| 137 | +doubleQuoteSetsRe2 = r'(?<=%s)\'"' % closeClass |
| 138 | +singleQuoteSetsRe2 = r"(?<=%s)\"'" % closeClass |
137 | 139 |
|
138 | 140 | # Special case for decade abbreviations (the '80s): |
139 | 141 | decadeAbbrRe = r"(?<!\w)'(?=\d{2}s)" |
|
143 | 145 |
|
144 | 146 | # Double closing quotes: |
145 | 147 | closingDoubleQuotesRegex = r'"(?=\s)' |
146 | | -closingDoubleQuotesRegex2 = '(?<=%s)"' % closeClass |
| 148 | +closingDoubleQuotesRegex2 = r'(?<=%s)"' % closeClass |
147 | 149 |
|
148 | 150 | # Get most opening single quotes: |
149 | 151 | openingSingleQuotesRegex = r"%s'(?=\w)" % openingQuotesBase |
@@ -240,6 +242,8 @@ def educateQuotes(self, md: Markdown) -> None: |
240 | 242 | (doubleQuoteStartRe, (rdquo,)), |
241 | 243 | (doubleQuoteSetsRe, (ldquo + lsquo,)), |
242 | 244 | (singleQuoteSetsRe, (lsquo + ldquo,)), |
| 245 | + (doubleQuoteSetsRe2, (rsquo + rdquo,)), |
| 246 | + (singleQuoteSetsRe2, (rdquo + rsquo,)), |
243 | 247 | (decadeAbbrRe, (rsquo,)), |
244 | 248 | (openingSingleQuotesRegex, (1, lsquo)), |
245 | 249 | (closingSingleQuotesRegex, (rsquo,)), |
|
0 commit comments