Configure syntax highlighting
This commit is contained in:
parent
ffaf587c3e
commit
df99ead67a
|
@ -11,6 +11,9 @@ export default defineConfig({
|
|||
],
|
||||
rehypePlugins: [
|
||||
[rehypeKatex, {output: 'mathml'}]
|
||||
]
|
||||
],
|
||||
shikiConfig: {
|
||||
theme: 'min-light'
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
@ -8,8 +8,8 @@ export async function getStaticPaths () {
|
|||
}
|
||||
|
||||
const { entry } = Astro.props;
|
||||
const { Content } = await entry.render();
|
||||
const { Content, headings } = await entry.render();
|
||||
---
|
||||
<Article frontmatter={entry.data}>
|
||||
<Article frontmatter={entry.data} headings={headings}>
|
||||
<Content />
|
||||
</Article>
|
||||
|
|
Loading…
Reference in a new issue