summaryrefslogtreecommitdiff
path: root/packages/integrations/mdx/test/mdx-get-headings.test.js (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-07-03feat: use typescript-eslint@v6's reworked configs (#7425)Gravatar Josh Goldberg ✨ 1-2/+2
2023-01-26Fix MDX heading IDs generation when using a frontmatter reference (#5978)Gravatar HiDeoo 1-0/+43
* Fix MDX heading IDs generation when using a frontmatter reference * Hoist safelyGetAstroData() call and add statement null check
2022-12-20MD/MDX collect headings refactor (#5654)Gravatar Chris Swithinbank 1-0/+91
2022-08-01[ci] formatGravatar bholmesdev 1-19/+23
2022-08-01[MDX] Add `getHeadings` + generate anchor links (#4095)Gravatar Ben Holmes 1-0/+56
* deps: mdx github-slugger * feat: add getHeadings via rehype plugin * chore: stray console.log * test: getHeadings w/ & w/0 JSX expressions * docs: add generated exports * refactor: pass headings using vfile.data * deps: vfile * test: heading anchor IDs * docs: add collect-headings to default rehype plugins * chore: changeset * deps: estree-util-value-to-estree * refactor: inject getHeadings export the right way! * deps: switch to acorn * refactor: just use acorn * docs: `getHeadings` info structuring Co-authored-by: Chris Swithinbank <swithinbank@gmail.com> * docs: clarify `url` example Co-authored-by: Chris Swithinbank <swithinbank@gmail.com> * fix: move slugger inside plugin call * refactor: cleanup code reassignment * chore: lint * deps: mdast-util-mdx, test utils * refactor: add jsToTreeNode util * feat: expose utils for lib authors * test: rehype plugins w/ and w/o extends * test: fixture * refactor: remove utils from package exports Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>