earldouglas / codedown

Extract code blocks from Markdown files
MIT License
79 stars 5 forks source link

Extract codeblock for any language #29

Closed danbeam closed 2 months ago

danbeam commented 2 months ago

I would like to extract a codeblock that doesn't have a language e.g. just ``` and not ```javascript.

As far as I know, that's not currently possible. If it is and I simply haven't found how to do it: please let me know!

Otherwise: I was thinking a language parameter of * instead of e.g. javascript could maybe work. The exact API for how this would be accomplished isn't critical, though.