bholmesdev
|
10a8fa5dcd
|
[ci] format
|
2022-08-01 21:25:50 +00:00 |
|
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 |
|
bholmesdev
|
8e20156638
|
[ci] format
|
2022-07-29 15:24:57 +00:00 |
|
Ben Holmes
|
1743fe140e
|
feat: support layout in MDX frontmatter (#4088)
* deps: add gray-matter
* feat: support layout frontmatter property
* test: frontmatter, content prop
* docs: update layout recommendation
* deps: fix lockfile
* chore: changeset
* fix: inherit rollup plugin transform
* fix: avoid parsing frontmatter on custom parsers
* fix: match YAML err handling from md
* docs: absolute url to docs
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* chore: formatting
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
|
2022-07-29 11:22:57 -04:00 |
|
matthewp
|
22f76b8a7e
|
[ci] format
|
2022-07-28 15:00:32 +00:00 |
|
Matthew Phillips
|
6120a71e54
|
Ensure file and url are always present in MDX for Astro.glob (#4076)
|
2022-07-28 10:58:44 -04:00 |
|
Ben Holmes
|
61fec63044
|
[MDX] Include url in glob result (#3981)
* deps: add es-module-lexer
* feat: inject url export on mdx files
* fix: apply url transform in prod
* test: page urls with overrides
* fix: revert test skips
* chore: changeset
* fix: add newline before export
|
2022-07-20 10:56:32 -04:00 |
|