style: use Dark+ syntax theme
This commit is contained in:
parent
8b06e2772a
commit
a5bccdf490
1 changed files with 2 additions and 2 deletions
|
@ -13,7 +13,7 @@ const renderer = {
|
||||||
}
|
}
|
||||||
|
|
||||||
const highlighter = await createHighlighter({
|
const highlighter = await createHighlighter({
|
||||||
themes: ["github-dark-dimmed"],
|
themes: ["dark-plus"],
|
||||||
langs: [
|
langs: [
|
||||||
"javascript",
|
"javascript",
|
||||||
"typescript",
|
"typescript",
|
||||||
|
@ -47,7 +47,7 @@ const posts = files.map((file) => {
|
||||||
(match, lang, code) => {
|
(match, lang, code) => {
|
||||||
return highlighter.codeToHtml(code.trim(), {
|
return highlighter.codeToHtml(code.trim(), {
|
||||||
lang: lang || "text",
|
lang: lang || "text",
|
||||||
theme: "github-dark-dimmed",
|
theme: "dark-plus",
|
||||||
transformers: [transformerColorizedBrackets()],
|
transformers: [transformerColorizedBrackets()],
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue