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
10 lines
353 B
TypeScript
10 lines
353 B
TypeScript
import type { ConfigType as MarkdocConfig } from '@markdoc/markdoc';
|
|
import { nodes as astroNodes } from './nodes/index.js';
|
|
import _Markdoc from '@markdoc/markdoc';
|
|
|
|
export const Markdoc = _Markdoc;
|
|
export const nodes = { ...Markdoc.nodes, ...astroNodes };
|
|
|
|
export function defineMarkdocConfig(config: MarkdocConfig): MarkdocConfig {
|
|
return config;
|
|
}
|