Skip to content

Commit

Permalink
Fix build_manpage.py with newer markdown versions
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
emanuele6 authored and nicowilliams committed Jul 11, 2023
1 parent 83d4dd1 commit c049061
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/build_manpage.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
# 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):
Expand Down

0 comments on commit c049061

Please sign in to comment.