dd82ab8d79
* Update Assets.md * expand fix for every /plugins page
1.0 KiB
1.0 KiB
title | tags | |
---|---|---|
SyntaxHighlighting |
|
This plugin is used to add syntax highlighting to code blocks in Quartz. See syntax highlighting for more information.
Note
For information on how to add, remove or configure plugins, see the configuration#Plugins page.
This plugin accepts the following configuration options:
theme
: a separate id of one of the themes bundled with Shikiji. One for light mode and one for dark mode. Defaults totheme: { light: "github-light", dark: "github-dark" }
.keepBackground
: If set totrue
, the background of the Shikiji theme will be used. Withfalse
(default) the Quartz theme color for background will be used instead.
In addition, you can further override the colours in the quartz/styles/syntax.scss
file.
API
- Category: Transformer
- Function name:
Plugin.SyntaxHighlighting()
. - Source:
quartz/plugins/transformers/syntax.ts
.