diff options
author | 2023-05-17 09:13:10 -0400 | |
---|---|---|
committer | 2023-05-17 09:13:10 -0400 | |
commit | fb84622af04f795de8d17f24192de105f70fe910 (patch) | |
tree | 11a99efdb90c17207d3adc1095e88fa8daddd7e4 /packages/integrations/markdoc/src/default-config.ts | |
parent | c91e837e961043e92253148f0f4291856653b993 (diff) | |
download | astro-fb84622af04f795de8d17f24192de105f70fe910.tar.gz astro-fb84622af04f795de8d17f24192de105f70fe910.tar.zst astro-fb84622af04f795de8d17f24192de105f70fe910.zip |
[Markdoc] `headings` and heading IDs (#7095)
* deps: markdown-remark
* wip: heading-ids function
* chore: add `@astrojs/markdoc` to external
* feat: `headings` support
* fix: allow `render` config on headings
* fix: nonexistent `userConfig`
* test: headings, toc, astro component render
* docs: README
* chore: changeset
* refactor: expose Markdoc helpers from runtime
* fix: bad named exports (commonjsssss)
* refactor: defaultNodes -> nodes
* deps: github-slugger
* fix: reset slugger cache on each render
* fix: bad astroNodes import
* docs: explain headingSlugger export
* docs: add back double stringify comment
* chore: bump to minor for internal exports change
Diffstat (limited to 'packages/integrations/markdoc/src/default-config.ts')
-rw-r--r-- | packages/integrations/markdoc/src/default-config.ts | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/packages/integrations/markdoc/src/default-config.ts b/packages/integrations/markdoc/src/default-config.ts deleted file mode 100644 index 16bd2c41f..000000000 --- a/packages/integrations/markdoc/src/default-config.ts +++ /dev/null @@ -1,18 +0,0 @@ -import type { ConfigType as MarkdocConfig } from '@markdoc/markdoc'; -import type { ContentEntryModule } from 'astro'; - -export function applyDefaultConfig( - config: MarkdocConfig, - ctx: { - entry: ContentEntryModule; - } -): MarkdocConfig { - return { - ...config, - variables: { - entry: ctx.entry, - ...config.variables, - }, - // TODO: heading ID calculation, Shiki syntax highlighting - }; -} |