summaryrefslogtreecommitdiff
path: root/examples/with-markdown-shiki/astro.config.mjs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/with-markdown-shiki/astro.config.mjs')
-rw-r--r--examples/with-markdown-shiki/astro.config.mjs22
1 files changed, 22 insertions, 0 deletions
diff --git a/examples/with-markdown-shiki/astro.config.mjs b/examples/with-markdown-shiki/astro.config.mjs
new file mode 100644
index 000000000..bb2a78321
--- /dev/null
+++ b/examples/with-markdown-shiki/astro.config.mjs
@@ -0,0 +1,22 @@
+// 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',
+ },
+ ],
+ },
+});