You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
code-fold: true is not working for the chunk with included code from external script #1
While this filter does include codes from an External file, code-fold: true or code-summary: "some text" is not working for that code chunk (that includes the source code). A quick reproducible example is as follows,
test.py
# code from test.py
for name in ["Sam", "Jake"]:
print(f"Hello {name}!")
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.
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 include-code-files and made an PR to quarto-web repo to enlist this extension the name add-code-files.
Activity
ProtossGP32 commentedon Feb 2, 2023
Facing the same problem here. It would be great if the extension was compatible with
code-folding as some files can be very long.shafayetShafee commentedon Feb 3, 2023
I have created the filter
include-code-filesextending this filterinclude-code-filesby @quarto-ext, so that included code blocks can be folded withcode-fold: trueand also provided an option so thatfilenameworks fine along with code-folding.cderv commentedon Feb 6, 2023
@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.
shafayetShafee commentedon Feb 6, 2023
I have already implemented my changes as another extension with
the same namethe nameinclude-code-filesand made an PR to quarto-web repo to enlist this extensionadd-code-files.cderv commentedon Feb 27, 2023
I'll keep this open for now as I think this extension should support that directly at some point.