ports/devel/py-cmdtest/files/patch-markdown
Po-Chuan Hsieh 02a4293745
devel/py-cmdtest: Fix runtime with py-markdown 3.4+
- Bump PORTREVISION for package change

from [1]:
In addition, the md_globals parameter of
Markdown.extensions.Extension.extendMarkdown() is no longer recognized as a
valid parameter and will raise an error if provided.

Reference:	https://github.com/Python-Markdown/markdown/blob/master/docs/changelog.md [1]
2024-02-21 23:11:28 +08:00

11 lines
432 B
Text

--- yarnlib/mdparser.py.orig 2019-11-28 08:54:47 UTC
+++ yarnlib/mdparser.py
@@ -55,7 +55,7 @@ class GatherCodeBlocks(Treeprocessor):
class ParseScenarioTestBlocks(markdown.extensions.Extension):
- def extendMarkdown(self, md, md_globals):
+ def extendMarkdown(self, md):
self.blocks = []
self.gatherer = GatherCodeBlocks(self.blocks)
md.treeprocessors.add('gathercode', self.gatherer, '_end')