Replace placeholders with html entities.
| 295 | root.append(footnotesDiv) |
| 296 | |
| 297 | class FootnotePostprocessor(markdown.postprocessors.Postprocessor): |
| 298 | """ Replace placeholders with html entities. """ |
| 299 | |
| 300 | def run(self, text): |
| 301 | text = text.replace(FN_BACKLINK_TEXT, "↩") |
| 302 | return text.replace(NBSP_PLACEHOLDER, " ") |
| 303 | |
| 304 | def makeExtension(configs=[]): |
| 305 | """ Return an instance of the FootnoteExtension """ |