ports/www/py-grip/files/patch-markdown
Po-Chuan Hsieh 006cc46556
www/py-grip: Fix runtime with py-markdown 3.4+
- Update version requirement of RUN_DEPENDS: Make sure py-markdown 3.4+ is used
- 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:15:29 +08:00

12 lines
373 B
Plaintext

--- grip/vendor/mdx_urlize.py.orig 2016-04-09 07:45:36 UTC
+++ grip/vendor/mdx_urlize.py
@@ -74,7 +74,7 @@ class UrlizeExtension(markdown.Extension):
"""
Urlize Extension for Python-Markdown.
"""
- def extendMarkdown(self, md, md_globals):
+ def extendMarkdown(self, md):
"""
Replace autolink with UrlizePattern
"""