(self, m: re.Match[str], data: str)
| 169 | self.md = md |
| 170 | |
| 171 | def handleMatch(self, m: re.Match[str], data: str) -> tuple[str, int, int]: |
| 172 | result = '' |
| 173 | for part in self.replace: |
| 174 | if isinstance(part, int): |
| 175 | result += m.group(part) |
| 176 | else: |
| 177 | result += self.md.htmlStash.store(part) |
| 178 | return result, m.start(0), m.end(0) |
| 179 | |
| 180 | |
| 181 | class SmartyExtension(Extension): |