mirror of
https://github.com/withastro/astro.git
synced 2024-12-23 21:53:55 -05:00
fb84622af0
* 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
11 lines
237 B
JavaScript
11 lines
237 B
JavaScript
import { defineMarkdocConfig, nodes } from '@astrojs/markdoc/config';
|
|
import Heading from './src/components/Heading.astro';
|
|
|
|
export default defineMarkdocConfig({
|
|
nodes: {
|
|
heading: {
|
|
...nodes.heading,
|
|
render: Heading,
|
|
}
|
|
}
|
|
});
|