mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-22 11:36:23 +00:00
dd82ab8d79
* Update Assets.md * expand fix for every /plugins page
1 KiB
1 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
.