Skip to content

Commit

Permalink
📚 DOCS: Fix deprecated import (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
firasm authored Mar 31, 2021
1 parent ed48ece commit 06d66b8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ with and without plugins and features:

```python
from markdown_it import MarkdownIt
from markdown_it.extensions.front_matter import front_matter_plugin
from markdown_it.extensions.footnote import footnote_plugin
from mdit_py_plugins.front_matter import front_matter_plugin
from mdit_py_plugins.footnote import footnote_plugin

md = (
MarkdownIt()
Expand All @@ -68,6 +68,10 @@ A footnote [^1]
""")
tokens = md.parse(text)
html_text = md.render(text)

## To export the html to a file, uncomment the lines below:
# from pathlib import Path
# Path("output.html").write_text(html_text)
```

### Command-line Usage
Expand Down

0 comments on commit 06d66b8

Please sign in to comment.