zyedidia / Literate

A literate programming tool for any language
https://zyedidia.github.io/literate/
Other
658 stars 44 forks source link

Feature Request: `run` command #37

Open fennecdjay opened 5 years ago

fennecdjay commented 5 years ago

First, thanks for such a good work. Would you consider adding a 'run' command to Literate, allowing to add the output of said command to the generated .html file? Something like

@run echo "<br>some markdown or html string<br>"

I'm searching a tool allowing me to describe and test the syntax of my (humble and in devellopment) programming language in a simple manner.

Hope I'm clear.

jackolantern commented 4 years ago

I came here to request a similar feature. I would like the ability to use a block as input to an arbitrary command, with the commands output added to the document. For example, calling a script to render a tikz image to a png and output an img tag.

fennecdjay commented 4 years ago

I really think that would be a nice addition. On my side, I'm now handling this problem whith this, but, @jackolantern, I can't tell wether it'll fit your needs.