-
Is it possible to use the For example I would like to extract all the bash code and run it ideally using:
Obviously Foe example:
It would be useful to add a 'new output' feature to |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
This is an interesting idea! I'd have to think a bit about whether we can generalize the syntax. For example, rather than Hello, _world_.
```bash
echo "message from bash"
``` becomes
The question then becomes, what happens to things like URLs and footnotes? In the meanwhile, you can use some_markdown='
Hello
```bash
echo "message from bash"
```
world'
echo "$some_markdown" | mdq '```bash' -o json | jq -r '.items[].code_block.code' | sh -x |
Beta Was this translation helpful? Give feedback.
-
Based on this discussion, I have created Issue #244, so this discussion can now be closed. Thank you for the brainstorming... |
Beta Was this translation helpful? Give feedback.
Based on this discussion, I have created Issue #244, so this discussion can now be closed.
Thank you for the brainstorming...