jupyter-book / jupyterlab-myst

Use MyST Markdown directly in Jupyter Lab
https://jupyter-book.github.io/jupyterlab-myst/
BSD 3-Clause "New" or "Revised" License
146 stars 18 forks source link

Support `literalinclude` directive #83

Open fperez opened 1 year ago

fperez commented 1 year ago

Context

This directive:

```{literalinclude} myscript
```

is supported by JBook (see example here), and is very useful in practice.

Proposal

Would be great to have it! I can't yet transition my lecture notes over as I use it in several places.

One more for the todo list :)

Tasks and updates

No response

rowanc1 commented 1 year ago

This is going to be quite interesting as the extension starts to become multi-document. This is now a network request to get that content, I don't think that is a problem -- but will make this feature a bit more involved. :)