Closed jay3332 closed 1 year ago
pr welcome
Is there expected support for multiple themes since marking #1992 as completed?
in v2 not, in v3 alpha we need update rehype-pretty-code
@danielmarinq available in https://github.com/shuding/nextra/releases/tag/nextra%403.0.0-alpha.17
https://rehype-pretty-code.netlify.app, scroll down to Multiple themes (dark/light mode)
Rehype Pretty Code allows the specification of multiple themes in
rehypePrettyCodeOptions
, which generates multiple code blocks for every theme allowing for multiple custom themes.It appears inline code-blocks are correctly handled, however multiline codeblocks only show one of the themes:
Dark theme (correct behavior):
Light theme (inline code-blocks display properly, however there no light-theme multiline codeblocks are rendered):
Nextra config: