From: Rod S Date: Fri, 16 Jun 2023 17:39:38 +0000 (-0700) Subject: Fix mistune create_markdown to work with mistune 3 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F6389%2Fhead;p=thirdparty%2Fgoogle%2Ffonts.git Fix mistune create_markdown to work with mistune 3 --- diff --git a/.github/workflows/knowledge_graph.py b/.github/workflows/knowledge_graph.py index f856699394..c9cc280f5b 100644 --- a/.github/workflows/knowledge_graph.py +++ b/.github/workflows/knowledge_graph.py @@ -120,7 +120,7 @@ class KnowledgeContent(NamedTuple): def _markdown_ast(md_file: Path) -> List[MdValue]: - return mistune.create_markdown(renderer=mistune.AstRenderer())(md_file.read_text()) + return mistune.create_markdown(renderer='ast')(md_file.read_text()) def _ast_iter(root: List[MdValue], filter_fn: Callable[[MdValue], bool]) -> Iterable[MdValue]: