Closed patarapolw closed 5 years ago
I'm not a 100% sure what you're asking, but prettyprinter is meant for pretty output of Python data, generally for humans to read—HTML markup and Markdown data that you seem to be working with are data embedded in strings, which prettyprinter does not pretty print other than as generic strings. Feel free to reopen if you provide more context as to what you are trying to achieve.
Description
I want to insert
hyper_markdownify(s)
into your code, and plan to make text-to-speech (TTS) on click in Jupyter Notebook.What I Did
In this repo: https://github.com/patarapolw/pyrepr
Most importantly, how do I extract the formatted HTML? I am able to extract the string using
But I cannot do the same with
cpprint
.