Replace placeholders with html entities.
| 466 | |
| 467 | |
| 468 | class FootnotePostprocessor(Postprocessor): |
| 469 | """ Replace placeholders with html entities. """ |
| 470 | def __init__(self, footnotes: FootnoteExtension): |
| 471 | self.footnotes = footnotes |
| 472 | |
| 473 | def run(self, text: str) -> str: |
| 474 | text = text.replace( |
| 475 | FN_BACKLINK_TEXT, self.footnotes.getConfig("BACKLINK_TEXT") |
| 476 | ) |
| 477 | return text.replace(NBSP_PLACEHOLDER, " ") |
| 478 | |
| 479 | |
| 480 | def makeExtension(**kwargs): # pragma: no cover |
no outgoing calls
no test coverage detected
searching dependent graphs…