-
-
Notifications
You must be signed in to change notification settings - Fork 244
Expand file tree
/
Copy pathec.config.mjs
More file actions
20 lines (19 loc) · 778 Bytes
/
ec.config.mjs
File metadata and controls
20 lines (19 loc) · 778 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import { pluginCollapsibleSections } from "@expressive-code/plugin-collapsible-sections";
import { pluginLineNumbers } from "@expressive-code/plugin-line-numbers";
import backusNaurHighlight from "./src/utils/shiki/bnf.tmLanguage.json" with { type: "json" };
import miniMessageHighlight from "./src/utils/shiki/mm.tmLanguage.json" with { type: "json" };
/** @type {import('@astrojs/starlight/expressive-code').StarlightExpressiveCodeOptions} */
export default {
plugins: [pluginLineNumbers(), pluginCollapsibleSections()],
defaultProps: {
showLineNumbers: false,
collapseStyle: "collapsible-start",
},
frames: {
extractFileNameFromCode: false,
},
emitExternalStylesheet: false,
shiki: {
langs: [miniMessageHighlight, backusNaurHighlight],
},
};