do not create a scrollable code block for more than 18 lines of code for reveal slides #2910
Unanswered
caimiao0714
asked this question in
Q&A
Replies: 2 comments 2 replies
-
Hey @caimiao0714 , I had the same issue. If you don't want the vertical scrolling you can add some css at the top of your Quarto script to overwrite the default ```{css, echo=FALSE}
.reveal code {
max-height: 100% !important;
}
``` |
Beta Was this translation helpful? Give feedback.
1 reply
This comment was marked as off-topic.
This comment was marked as off-topic.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I've been learning quarto slides using reveal.js, and so far the experience has been great. The only thing that irritates me is when my code block is more than 18 lines, quarto just automatically creates a scrollable code block for me. However, I think it can just safely print out all the code because there is plenty of white space. Below are some code to reproduce the issue I have.
Is there any trick that I could use to tackle this issue of automatically creating scrollable code blocks?
Thanks,
Miao
Beta Was this translation helpful? Give feedback.
All reactions