Open shah opened 3 years ago
greetings!
--appendOutput
flag will update output blocks, which you've likely discovered, and is active in this project's readmemarkdown
, i'd be open to that
so, were such a feature to be added:
seems like a useful feature. minimally, defining the language type for the output markdown seems very valuable, and that is currently lacking. perhaps an output: ...
field on the input markdown's codefence would be where you/we could experiment w/ such an api?
fwiw, i have intent to use this against postgres as well :) i wrote a very mediocre article some time ago that i still present periodically to peers (https://cdaringe.com/protect-bacon-with-rls) where i advocate for DB reflecting APIs with security all at the data layer. i had this lib in mind recently when brushing up on that content. so, i want this feature too :)
Got it @cdaringe I'll take a peek to see if I can propose some changes via PRs. Meanwhile, you and I agree on the database being a proper computing platform. Check out my code on that subject here: https://github.com/netspective-studios/pgdcp :-)
@cdaringe I was curious if
markdown_player
might support this feature and I'm missing it:my-markdown.md
my-markdown.md
would have fenced code blocks of SQL inside comments and named blocks for results of SQL captured by runningpsql
(PostgreSQL) command from bashmy-markdown.md
, preserving the SQL in comments but replacing the text that was executed by SQL.my-markdown.md
and be able to "play" the markdown with the same SQL but emitting different output. Then, we just stored the file right back into Git/file store and we have only one file that acts as the template + the output whenever we need.For example:
my-markdown.md
Thoughts? :-)