DEV Community

Discussion on: What would you add to Markdown? 🤔

Collapse
 
thinkverse profile image
Kim Hallberg

So in this example would it include it rendered in a code-block, because that would be amazing to have on GitHub, that way instead of copying the file yourself you could do.

#+INCLUDE: "./myscript.sh" src bash 2 5

Where the first argument is the file, the second is the directory to look in, third would be the highlight, fourth and fifth would be the lines in the file to copy, zero-based index, because we developers love that. 👍

Collapse
 
tomfern profile image
Tomas Fernandez

Yes, it works like images. It gives us the option to put the code on a separate file and still be rendered as a single document. It would be neat feature to have, specially to write READMEs.

The org-mode help shows all the things we could do with includes.