2bc91543ce
* Replaced `shikiTheme` with `shikiConfig` * Code.astro now accepts custom themes/langs * Updated docs * Updated tests * Fixed language loading * Added customization examples * Updated documentation * Added more tests * Changelogs * Changed some spaces to tabs * Fixed typo in changesets * Moved tests fixtures * Rolled back changes to with-markdown-shiki * Removed lang example in docs * Optimized Code component * Try to fix windows errors * Try to see if this new tests work
26 lines
825 B
JavaScript
26 lines
825 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',
|
|
shikiConfig: {
|
|
theme: 'dracula',
|
|
// Learn more about this configuration here:
|
|
// https://docs.astro.build/en/guides/markdown-content/#syntax-highlighting
|
|
},
|
|
},
|
|
],
|
|
},
|
|
});
|