EscapeHtml.extendMarkdown disabled

Updated markdown caused failures.
Not sure what is going on with this class, 0 comments :-(
If someone could give me a hint as to what this is trying to achieve, I
can investigate further
This commit is contained in:
Martin Whitehouse 2022-07-20 16:32:51 +02:00
parent 08654bd9c4
commit fa91620bf9
No known key found for this signature in database
GPG Key ID: 3FCE1D3E9DEC09C1
2 changed files with 5 additions and 4 deletions

View File

@ -9,7 +9,7 @@ jobs:
strategy: strategy:
max-parallel: 4 max-parallel: 4
matrix: matrix:
python-version: ["3.8", "3.9"] python-version: ["3.8", "3.9", "3.10"]
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }} - name: Set up Python ${{ matrix.python-version }}

View File

@ -50,9 +50,10 @@ def format_time_spent(time_spent):
class EscapeHtml(Extension): class EscapeHtml(Extension):
def extendMarkdown(self, md, md_globals): def extendMarkdown(self, md, md_globals=None):
del md.preprocessors['html_block'] # del md.preprocessors['html_block']
del md.inlinePatterns['html'] # del md.inlinePatterns['html']
pass
def get_markdown(text): def get_markdown(text):