Fix build_manpage.py with newer markdown versions

The markdown python changed its API for markdown extensions.

Bumping the markdown package version in previous commits broke
docs/build_manpage.py since it was using registering an extension with
the old API.
This commit is contained in:
Emanuele Torre authored and Nico Williams committed 2023-07-11 00:24:50 -05:00
1 parent 83d4dd16ad
commit c049061084
1 file changed
+3 -3
+3 -3
View File
@@ -12,9 +12,9 @@ import yaml
# Prevent our markdown parser from trying to help by interpreting things in angle brackets as HTML tags. # Prevent our markdown parser from trying to help by interpreting things in angle brackets as HTML tags.
class EscapeHtml(Extension): class EscapeHtml(Extension):
def extendMarkdown(self, md, md_globals): def extendMarkdown(self, md):
del md.preprocessors['html_block'] md.preprocessors.deregister('html_block')
del md.inlinePatterns['html'] md.inlinePatterns.deregister('html')
class RoffWalker(object): class RoffWalker(object):