blob: 16bd2c41f8cb678a296904f6c5f3fc2fc6b3c9ad (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
import type { ConfigType as MarkdocConfig } from '@markdoc/markdoc';
import type { ContentEntryModule } from 'astro';
export function applyDefaultConfig(
config: MarkdocConfig,
ctx: {
entry: ContentEntryModule;
}
): MarkdocConfig {
return {
...config,
variables: {
entry: ctx.entry,
...config.variables,
},
// TODO: heading ID calculation, Shiki syntax highlighting
};
}
|