kneufeld/consolemd

Add examples for usage from other python scripts

Opened this issue · 2 comments

I was looking for a library to pretty print md files from within my own python script, and not as a standalone cli.

This package works great, you should add examples for using the renderer directly from other scripts:

import consolemd
with open('README.md', 'r') as readme:
   readme_content = readme.read()
renderer = consolemd.Renderer()
renderer.render(readme_content)

cheers

That's a good idea, I'll do that. Thanks for the suggestion!

Came here for this, thanks for the snippet!