Closed mfontanini closed 3 months ago
I added a new set of configs to enable this (-X as a cli parameter and snippet.exec_replace.enable in the config file) as this adds a whole other level of danger when running someone else's presentation
I'm not sure I see how exec + replace is any more dangerous than exec?
Because it happens automatically on presentation load. So you open a presentation and this runs code without user intervention
Good call with -X
, fan of that.
I think I like the replace better than the pre_process, although I am not sure if it is clear whether or not it render the replaced output as markdown or not.
I'll merge this as is, if someone has a better name please shout
This adds the
+exec_replace
attribute that is basically an+exec
except the output of the snippet's execution replaces the snippet itself. This allows using tools that emit ascii art, colorize outputs, etc.I added a new set of configs to enable this (
-X
as a cli parameter andsnippet.exec_replace.enable
in the config file) as this adds a whole other level of danger when running someone else's presentation so I don't think the configs forexec
are enough to protect users.Fixes #292