6fe1b0279f
* [ci] yarn format * Added shiki to markdown-remark * Upgraded astro shiki * Added minimal example * Changed defaults to match <Code /> * Replace `shiki` with `astro` classes * Added documentation * Updated Astro code to use new `codeToHtml` * Added changesets * Added basic test * Updated tests a bit Co-authored-by: JuanM04 <JuanM04@users.noreply.github.com>
22 lines
672 B
JavaScript
22 lines
672 B
JavaScript
// Full Astro Configuration API Documentation:
|
|
// https://docs.astro.build/reference/configuration-reference
|
|
|
|
// @type-check enabled!
|
|
// VSCode and other TypeScript-enabled text editors will provide auto-completion,
|
|
// helpful tooltips, and warnings if your exported object is invalid.
|
|
// You can disable this by removing "@ts-check" and `@type` comments below.
|
|
import astroRemark from '@astrojs/markdown-remark';
|
|
|
|
// @ts-check
|
|
export default /** @type {import('astro').AstroUserConfig} */ ({
|
|
// Enable Custom Markdown options, plugins, etc.
|
|
markdownOptions: {
|
|
render: [
|
|
astroRemark,
|
|
{
|
|
syntaxHighlight: 'shiki',
|
|
shikiTheme: 'dracula',
|
|
},
|
|
],
|
|
},
|
|
});
|