consolemd icon indicating copy to clipboard operation
consolemd copied to clipboard

Add examples for usage from other python scripts

Open MiaMish opened this issue 6 years ago • 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

MiaMish avatar Jan 18 '19 11:01 MiaMish

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

kneufeld avatar Jan 18 '19 19:01 kneufeld

Came here for this, thanks for the snippet!

mcintyre321 avatar Jan 10 '20 11:01 mcintyre321