0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00
astro/packages/integrations/mdx/test/fixtures
Ben Holmes 40ef43a59b
[MDX] Add getHeadings + generate anchor links (#4095)
* 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>
2022-08-01 17:23:56 -04:00
..
mdx-component/src
mdx-custom-frontmatter-name/src/pages [MDX] Support YAML frontmatter (#3995) 2022-07-20 21:34:21 -04:00
mdx-frontmatter/src feat: support layout in MDX frontmatter (#4088) 2022-07-29 11:22:57 -04:00
mdx-get-headings/src/pages [MDX] Add getHeadings + generate anchor links (#4095) 2022-08-01 17:23:56 -04:00
mdx-get-static-paths/src Ensure file and url are always present in MDX for Astro.glob (#4076) 2022-07-28 10:58:44 -04:00
mdx-page/src/pages
mdx-rehype-plugins/src/pages [MDX] Add getHeadings + generate anchor links (#4095) 2022-08-01 17:23:56 -04:00
mdx-remark-plugins/src/pages [MDX] Support remark and rehype plugins, with defaults (#3977) 2022-07-20 14:14:23 -04:00
mdx-syntax-hightlighting/src/pages [MDX] Add Prism and Shiki support (#4002) 2022-07-21 16:43:58 -04:00
mdx-url-export/src/pages [MDX] Include url in glob result (#3981) 2022-07-20 10:56:32 -04:00