Why code chunk only shows half of the code? #2203
-
Hi everyone! ContentI am using quaro to make slides based on revealjs. and I set QuestionI do not know why code chunk only shows half of the code. Reproducible codeClick me
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
We have a which already increase the revealjs default one from the template that we include (source of template in https://github.com/hakimel/reveal.js/blob/1be851658f0eefd7fca2fad87b543c874eb322c0/css/theme/template/theme.scss#L195) So that is how reveal.js works with code block by default it seems, and we already made it bigger. We could try improve the default, but in some other situation with text paragraph under code blocks for example, the code block would take the whole slide and text probably would not be visible. I believe this is the reason why this is set that way. Not that you can overwrite the theme: https://quarto.org/docs/presentations/revealjs/themes.html#customizing-themes To make that automatic, we would need to find a way to compute the available space in the column and change the width accordingly 🤔 |
Beta Was this translation helpful? Give feedback.
We have a
max-height
set on the code block for reveal.js presentationquarto-cli/src/resources/formats/revealjs/quarto.scss
Line 247 in cb578b9
which already increase the revealjs default one from the template that we include
quarto-cli/src/resources/formats/revealjs/reveal/css/theme/template/theme.scss
Line 195 in f29aacf
(source of template in https://github.com/hakimel/reveal.js/blob/1be851658f0eefd7fca2fad87b543c874eb322c0/css/theme/template/theme.scss#L195)
So that is how reveal.js works with code block by default it seems, and we already made it bigger.
We could try improve the default, but in some other situa…