Skip to content

Commit 06d66b8

Browse files
authored
📚 DOCS: Fix deprecated import (#150)
1 parent ed48ece commit 06d66b8

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ with and without plugins and features:
4343

4444
```python
4545
from markdown_it import MarkdownIt
46-
from markdown_it.extensions.front_matter import front_matter_plugin
47-
from markdown_it.extensions.footnote import footnote_plugin
46+
from mdit_py_plugins.front_matter import front_matter_plugin
47+
from mdit_py_plugins.footnote import footnote_plugin
4848

4949
md = (
5050
MarkdownIt()
@@ -68,6 +68,10 @@ A footnote [^1]
6868
""")
6969
tokens = md.parse(text)
7070
html_text = md.render(text)
71+
72+
## To export the html to a file, uncomment the lines below:
73+
# from pathlib import Path
74+
# Path("output.html").write_text(html_text)
7175
```
7276

7377
### Command-line Usage

0 commit comments

Comments
 (0)