style: add automatic colors to code
This commit is contained in:
1 parent
14be41befd
commit
592b1a158a
7 files changed
+309
-4
No files matched your search
@@ -3,6 +3,12 @@ import path from 'path';
|
||||
import matter from 'gray-matter';
|
||||
import { remark } from 'remark';
|
||||
import html from 'remark-html';
|
||||
import rehypePrettyCode from 'rehype-pretty-code';
|
||||
|
||||
const options = {
|
||||
theme: 'github-dark', // oder 'nord', 'one-dark-pro', etc.
|
||||
keepBackground: true,
|
||||
};
|
||||
|
||||
export type WikiArticle = {
|
||||
slug: string;
|
||||
|
||||
Reference in new issue
Block a user