diff --git a/.gitignore b/.gitignore index c4cff51..7ff0259 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ pandoc_resume/ publish/ +__pycache__ diff --git a/src/mdtohtml.py b/src/mdtohtml.py new file mode 100644 index 0000000..d1ea271 --- /dev/null +++ b/src/mdtohtml.py @@ -0,0 +1,6 @@ +from markdown_it import MarkdownIt + +md = MarkdownIt() + +def mdtohtml(mdsrc): + return md.render(mdsrc)