There are few versions of the Markdown-Latex package for Python, but I can't get any to work with the current version of the Markdown package. Does anyone have a working example using python like:
lines = markdown.markdown(lines,extensions=[MarkdownLatex()]
Thanks!
You can rename the file of the extension to "mdx_latex.py" and then, in the same directory, you can run the following command:
import markdown
md = markdown.Markdown(extensions=['latex'])
out = md.convert(text)