Alternative renderers
I have implemented a couple of alternative renderers, specifically:
- markdown -> terminal
- markdown -> markdown
I have code that should make it trivial to write a couple more (PNG and SVG) and I have "plans" for a PDF renderer (that supports HTML, will be fun!).
Those are currently in my markterm project. Would there be interest in adding them to markd itself?
Pros:
- Having more than one renderer in core helps abstract the base renderer at the proper level
- Maybe someone needs them (unlikely)
Cons:
- Makes markd larger and it's not like there's an abundance of person-power
- Makes advancing the HTML renderer harder
The markdown -> terminal and markdown -> markdown ones could be interesting, and I'd be fine integrating them. Having multiple renderers does make the parser more robust. The PDF one could also be interesting, but don't want to go too crazy and re-create pandoc.
https://media.giphy.com/media/RoVtkZM8YmI3tzTisq/giphy.gif?cid=790b76110hkfxtlxf03gi7djly2f0zzmobwag4o21spmcttq&ep=v1_gifs_search&rid=giphy.gif&ct=g
I will propose at least the md->md one once I am done with footnotes. It will need substantial improvements to support at least tables (good there is tablo 1.0 now!)