Replies: 1 comment 4 replies
-
Currently Marp is depending on CSS overloading to change highlight.js theme. Almost work by adding the content of highlight.js CSS within the inline style ---
marp: true
---
<style>
/* NOTE: .hljs should replace to pre */
pre {
color: #000;
background: #fff;
}
.hljs-subst,
.hljs-title {
font-weight: normal;
color: #000;
}
...
</style>
... However, predefined highlight.js styles won't be reseted so may not render theme as expected if lacking overloaded styles in new highlight.js theme. For now there is no better solution. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a way to change the highlight-js theme used in marp-core?
Beta Was this translation helpful? Give feedback.
All reactions