-
I want the contents of the code block to remain unchanged and wrap automatically, how do I set it? |
Beta Was this translation helpful? Give feedback.
Answered by
yhatt
Jun 20, 2022
Replies: 1 comment
-
You have to use a custom theme if you want to disable auto-scaling and apply /* @theme custom-theme */
/* @auto-scaling fittingHeader,math */
@import 'default';
pre {
white-space: pre-wrap;
} Related |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
yhatt
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
<pre>
tags rendered by Marp Core's built-in themes are enabled auto-scaling instead of text wrapping.https://github.com/marp-team/marp-core/tree/main/themes#auto-scaling-flags
You have to use a custom theme if you want to disable auto-scaling and apply
white-space: pre-wrap
to<pre>
. Excludecode
from the scaling targets by using@auto-scaling
metadata.Related