Skip to content

Commit 6ea4ec7

Browse files
committed
downloader: Apply myst and frontmatter mdformat plugins
1 parent 922cbe2 commit 6ea4ec7

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

hypernode/downloader/main.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,9 @@ def convert_document(
181181
f"# {article_heading}\n"
182182
f"{article_body_markdown}"
183183
)
184-
document_contents = mdformat.text(document_contents)
184+
document_contents = mdformat.text(
185+
document_contents, extensions=["frontmatter", "myst"]
186+
)
185187

186188
filepath = output_dir.joinpath(filename)
187189

requirements/base.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ mdit-py-plugins
55
sphinx-copybutton==0.5.1
66
mdformat==0.7.16
77
mdformat-myst==0.1.5
8+
mdformat-frontmatter==0.4.1
89

910
beautifulsoup4==4.11.1
1011
markdownify==0.11.2

0 commit comments

Comments
 (0)