Skip to content

Change font-size of codeblock #519

Closed Answered by yhatt
m1rm asked this question in Q&A
Discussion options

You must be logged in to vote

The tweaked style that you've described should be worked in Marp built-in themes. However, if you are using some customized themes and plugins, it may be using more specific selector such as pre > code to set the custom font size.

When pre selector did not work, you can try to use more specific selector pre > code, or !important keyword to override the font size.

pre > code {
  font-size: 100px;
}
pre {
  font-size: 100px !important;
}

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by m1rm
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants