mirror of
https://github.com/stedolan/jq.git
synced 2024-05-11 05:55:39 +00:00
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:
committed by
Nico Williams
parent
83d4dd16ad
commit
c049061084
@ -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):
|
||||
|
Reference in New Issue
Block a user