freebsd-ports/textproc/py-sphinx-markdown-tables/files/patch-markdown
Po-Chuan Hsieh 91a76eec79
textproc/py-sphinx-markdown-tables: 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

Obtained from:	7d0bbd2c85
2024-02-21 23:15:28 +08:00

13 lines
620 B
Text

Obtained from: https://github.com/ryanfox/sphinx-markdown-tables/commit/7d0bbd2c851efcc9ba25b1a851924333b923c023
--- sphinx_markdown_tables/__init__.py.orig 2022-08-16 13:25:15 UTC
+++ sphinx_markdown_tables/__init__.py
@@ -21,7 +21,7 @@ def process_tables(app, docname, source):
"""
import markdown
md = markdown.Markdown(extensions=['markdown.extensions.tables'])
- table_processor = markdown.extensions.tables.TableProcessor(md.parser)
+ table_processor = markdown.extensions.tables.TableProcessor(md.parser, {})
raw_markdown = source[0]
blocks = re.split(r'(\n{2,})', raw_markdown)