Skip to content

Commit f1fc875

Browse files
committed
fix: Support formatting Markdown tables
Issue-13: #13
1 parent b5ace48 commit f1fc875

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ dependencies = [
3333
"beautifulsoup4>=4.12",
3434
"markdownify>=0.14",
3535
"mdformat>=0.7.21",
36+
"mdformat-tables>=1.0",
3637
]
3738

3839
[project.urls]

src/mkdocs_llmstxt/_internal/plugin.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,4 +237,8 @@ def _generate_page_markdown(
237237
autoclean(soup)
238238
if preprocess:
239239
_preprocess(soup, preprocess, path)
240-
return mdformat.text(_converter.convert_soup(soup), options={"wrap": "no"})
240+
return mdformat.text(
241+
_converter.convert_soup(soup),
242+
options={"wrap": "no"},
243+
extensions=("tables",),
244+
)

0 commit comments

Comments
 (0)