]> git.ipfire.org Git - thirdparty/google/fonts.git/commitdiff
Fix mistune create_markdown to work with mistune 3 6389/head
authorRod S <rsheeter@google.com>
Fri, 16 Jun 2023 17:39:38 +0000 (10:39 -0700)
committerRod S <rsheeter@google.com>
Fri, 16 Jun 2023 17:39:38 +0000 (10:39 -0700)
.github/workflows/knowledge_graph.py

index f85669939439c791304567bcca6eda84ff42e639..c9cc280f5b17f6f126979d56cc6110ea08861ab4 100644 (file)
@@ -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]: