Open shafayetShafee opened 1 year ago
Facing the same problem here. It would be great if the extension was compatible with code-fold
ing as some files can be very long.
I have created the filter include-code-files
extending this filter include-code-files
by @quarto-ext, so that included code blocks can be folded with code-fold: true
and also provided an option so that filename
works fine along with code-folding.
@shafayetShafee that is cool !
do you want /plan to make PR into this extension or rather keep your modification in another extension with the same name ?
We welcome any contribution by the community, especially in our extension as we don't have as much time to spend on it when we are focusing on quarto-cli core development.
I have already implemented my changes as another extension with the same name the name include-code-files
and made an PR to quarto-web repo to enlist this extensionadd-code-files
.
I'll keep this open for now as I think this extension should support that directly at some point.
While this filter does include codes from an External file,
code-fold: true
orcode-summary: "some text"
is not working for that code chunk (that includes the source code). A quick reproducible example is as follows,test.py
test.qmd
output
I am using Quarto version,
Thanks.