summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmanuele Torre <torreemanuele6@gmail.com>2023-07-11 04:18:10 +0200
committerNico Williams <nico@cryptonector.com>2023-07-11 00:24:50 -0500
commitc04906108419fb9b3afbd592e515759b43665a04 (patch)
tree9c1dca3424c592e019f2d36e74a07a99b0a7609e
parent83d4dd16adfced4a600c36aceb488adf5a2a539e (diff)
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.
-rwxr-xr-xdocs/build_manpage.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/build_manpage.py b/docs/build_manpage.py
index fd2ece4d..4f227b23 100755
--- a/docs/build_manpage.py
+++ b/docs/build_manpage.py
@@ -12,9 +12,9 @@ import yaml
# Prevent our markdown parser from trying to help by interpreting things in angle brackets as HTML tags.
class EscapeHtml(Extension):
- def extendMarkdown(self, md, md_globals):
- del md.preprocessors['html_block']
- del md.inlinePatterns['html']
+ def extendMarkdown(self, md):
+ md.preprocessors.deregister('html_block')
+ md.inlinePatterns.deregister('html')
class RoffWalker(object):