Literate icon indicating copy to clipboard operation
Literate copied to clipboard

Output markdown instead of HTML

Open bas080 opened this issue 3 years ago • 2 comments

Most opensource projects nowadays have a README in markdown format. It would be great to be able to have Literate generate this README for me.

To achieve this I need Literate to output markdown.

Although I agree that a README should not contain all source code, it would be nice to be able to reference certain code blocks in the README. Usage examples and performing project related tasks.

Also, if Literate outputs markdown, it would play nicer with other tools like pandoc and many other tools that allow markdown as input.

Maybe it's already possible to do this but I haven't been able to get it to work.

bas080 avatar Mar 12 '21 09:03 bas080

+1

brikis98 avatar Sep 30 '21 11:09 brikis98

I've experimented with the literate programming idea for a while now. I have added a concept of evaluating markdown code-blocks. With that feature I am able to also enable code weaving.

See: https://github.com/bas080/markatzea - allows evaluating markdown code-blocks https://github.com/bas080/memplate - a template language for working with code

Both tools are written in Perl.

I have used markatzea in many of my projects. One feature I like is that I'm able to evaluate my usage examples and test if they are still valid and working, while at the same time rendering the output of those processes.

Not trying to steal Literate's thunder here. Just trying to explore the world of literate programming and share my findings.

bas080 avatar Oct 07 '21 15:10 bas080