bkt usage in markdown #16
JulienPalard
started this conversation in
Show and tell
Replies: 1 comment
-
Cool! just like (my) https://docs.enola.dev/use/execmd/ (for which bkt seems similarly useful) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
@dimo414 asked me to share how I use bkt in real world, so here it is:
I'm a sometimes teach things (Python mostly) so I'm writing slides from times to times, in Markdown, using an extremly basic markdown to reveal tool.
Sometimes I like to write examples, but don't want to spend too much time copy-pasting the commands and their results, so I use a little sed-trick, instead of just giving my file to
mdtoreveallike:I do use:
So every expression starting with #! will be executed in bash and replaced with their output, for example:
But today I'm writing slides about performance, so I have many commands that take seconds to run, and building my slides soon became very slow: I needed
bkt!It's almost as simple as:
I just miss a BIG timeout, so I opened a PR to configure bkt from environment variables to be able to configure it from the
Makefileinstead of having to write--ttl--cache-dirand so on on each bkt invocation (which I currently do using a little bash wrapper).Beta Was this translation helpful? Give feedback.
All reactions