summaryrefslogtreecommitdiff
path: root/examples/with-markdown-shiki/astro.config.mjs
diff options
context:
space:
mode:
authorGravatar Nate Moore <natemoo-re@users.noreply.github.com> 2022-04-02 13:29:59 -0500
committerGravatar GitHub <noreply@github.com> 2022-04-02 12:29:59 -0600
commit17c02925c52027246000305cea1f9a7b6f484b00 (patch)
tree687b8ca9e7b89b06dad65ae195619ea2ea50f57b /examples/with-markdown-shiki/astro.config.mjs
parent76f6643dddb9343218020cf7585be92a1fe45d3a (diff)
downloadastro-17c02925c52027246000305cea1f9a7b6f484b00.tar.gz
astro-17c02925c52027246000305cea1f9a7b6f484b00.tar.zst
astro-17c02925c52027246000305cea1f9a7b6f484b00.zip
Migrate to new config (#2962)
* wip: config migration * fix: formatting * refactor: projectRoot -> root * refactor: pageUrlFormat -> format * refactor: buildOptions.site -> site * refactor: public -> publicDir * refactor: dist -> outDir * refactor: styleOptions -> style * fix: some dist tests -> outDir * refactor: remove legacyBuild (with TODOs) * refactor: more legacyBuild cleanup * refactor: server host and port * fix: remove experimentalStaticBuild CLI flag * refactor: src -> srcDir * refactor: devOptions.trailing -> trailing * refactor: remove sitemap + related flags * refactor: experimentalSSR -> experimental.ssr * fix: last devOptions * refactor: drafts -> markdown.drafts * fix: TS error on port as const * refactor: remove pages * refactor: more --project-root updates * refactor: markdownOptions -> markdown * fix: remaining type errors * feat: update AstroUserConfig * refactor: update CLI flag mapper + server mapper * fix: loadFixture projectRoot * fix: merge CLI flags before validating / transforming * wip: attempt to fix bad createRouteManifest config * refactor: combine config.base and config.site * fix: skip route manifest test for now * fix: site and base handling * refactor: update failing config testes * fix: build failure * feat: update config types with migration help * chore: update types * fix(deno): update deno fixture * chore: remove config migration logic * chore: remove logLevel * chore: clean-up config types * chore: update config warning * chore: add changeset * Sitemap Integration (#2965) * feat: add sitemap filter config option * feat: add canonicalURL sitemap config option * docs: update sitemap README * fix: update for new config * fix: filter not being applied * chore: changeset Co-authored-by: bholmesdev <hey@bholmes.dev> * fred pass * fix: Astro.resolve typo * fix: public => publicDir Co-authored-by: bholmesdev <hey@bholmes.dev> Co-authored-by: Fred K. Schott <fkschott@gmail.com>
Diffstat (limited to 'examples/with-markdown-shiki/astro.config.mjs')
-rw-r--r--examples/with-markdown-shiki/astro.config.mjs22
1 files changed, 8 insertions, 14 deletions
diff --git a/examples/with-markdown-shiki/astro.config.mjs b/examples/with-markdown-shiki/astro.config.mjs
index 7a0b4f0f2..0a928c898 100644
--- a/examples/with-markdown-shiki/astro.config.mjs
+++ b/examples/with-markdown-shiki/astro.config.mjs
@@ -1,20 +1,14 @@
import { defineConfig } from 'astro/config';
-import astroRemark from '@astrojs/markdown-remark';
// https://astro.build/config
export default defineConfig({
// 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
- },
- },
- ],
- },
+ markdown: {
+ syntaxHighlight: 'shiki',
+ shikiConfig: {
+ theme: 'dracula',
+ // Learn more about this configuration here:
+ // https://docs.astro.build/en/guides/markdown-content/#syntax-highlighting
+ },
+ }
});