summaryrefslogtreecommitdiff
path: root/packages/integrations/mdx (follow)
AgeCommit message (Collapse)AuthorFilesLines
2022-08-09Astro 1.0.0 (#4214)Gravatar Nate Moore 2-2/+9
* chore: remove changesets patch * chore: add changesets * chore: version packages * chore: normalize formatting * chore: update lockfile * chore: fix codeblocks * Update packages/astro/CHANGELOG.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Update packages/astro/CHANGELOG.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Update packages/astro/CHANGELOG.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * chore: fixup code samples * chore: move v0.25 message out of note Co-authored-by: Nate Moore <nate@astro.build> Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-08-09remove errant remaining details tags (#4212)Gravatar Sarah Rainsberger 1-1/+1
2022-08-08[ci] release (#4197)astro@1.0.0-rc.8@astrojs/mdx@0.8.0@astrojs/cloudflare@0.5.0Gravatar Fred K. Bot 2-1/+11
* [ci] release * Update CHANGELOG.md Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-08-08[ci] formatGravatar natemoo-re 1-1/+3
2022-08-08[MDX] Remove `frontmatterOptions` (#4204)Gravatar Ben Holmes 7-101/+6
* feat: remove frontmatterOptions config * test: remove custom frontmatter suite * deps: remove remark-mdx-frontmatter * docs: remove `frontmatterOptions` config * chore: changeset
2022-08-08[MDX] Add frontmatter injection to README (#4205)Gravatar Ben Holmes 1-5/+37
* docs: remove `remark-mdx-frontmatter` from README * docs: remove remark-mdx-frontmatter link * docs: MDX frontmatter injection * chore: changeset
2022-08-08remove details tags from integration READMEs (#4198)Gravatar Sarah Rainsberger 1-30/+21
2022-08-05[ci] release (#4159)create-astro@0.15.0astro@1.0.0-rc.7@astrojs/react@0.4.3@astrojs/mdx@0.7.0@astrojs/markdown-remark@0.14.1@astrojs/image@0.3.2Gravatar Fred K. Bot 2-1/+15
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-05[MDX] Prevent overriding `collect-headings` plugin (#4181)Gravatar Ben Holmes 3-30/+9
* fix: make rehypeCollectHeadings a required plugin * docs: update README on rehypePlugins * test: remove collect-headings override test * docs: remove extends from rehype docs * chore: changeset
2022-08-05[ci] formatGravatar natemoo-re 3-7/+10
2022-08-05Frontmatter injection for MD and MDX (#4176)Gravatar Ben Holmes 15-61/+279
* feat: inject vfile data as exports * feat: add vfile to renderMarkdown output * feat: add safe astroExports parser to utils * refactor: expose vite-plugin-utils on astro package * feat: handle astroExports in mdx * deps: vfile * chore: lockfile * test: astroExports in mdx * refactor: merge plugin exports into forntmatter * refactor: astroExports -> astro.frontmatter * refactor: md astroExports -> astro.frontmatter * feat: astro.frontmatter vite-plugin-markdown * chore: remove unused import * fix: inline safelyGetAstroData in MDX integration * chore: check that frontmatter export is valid export name * chore: error log naming * test: mdx remark frontmatter injection * fix: inconsistent shiki mod resolution * fix: add new frontmatter and heading props * test: remark vdata * fix: spread astro.data.frontmatter * test deps: mdast-util-to-string, reading-time * fix: astro-md test package name * test: md frontmatter injection * fix: layouts * deps: remove vite-plugin-utils export * fix: package lock * chore: remove dup import * chore: changeset * chore: add comment on safelyGetAstroData source * deps: move mdast-util-to-string + reading-time to test fixture * chore: move remark plugins to test fixture * fix: override plugin frontmatter with user frontmatter * test: md injected frontmatter overrides * test: frontmatter injection overrides mdx
2022-08-05Add test for mdx + React usage (#4174)Gravatar Matthew Phillips 5-0/+55
* Add test for mdx + React usage * Add a changeset Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-08-05Handle edge case in jsx-runtime (#4158)Gravatar Nate Moore 6-0/+59
* fix(#4135): handle edge case in jsx-runtime * test: add mdx test case * chore: fix utils reference * test: fix mdx escape test Co-authored-by: Nate Moore <nate@astro.build>
2022-08-04fix missing newline bug in mdx (#4145)Gravatar Fred K. Schott 2-1/+4
2022-08-03[ci] release (#4133)astro@1.0.0-rc.5@astrojs/mdx@0.6.0@astrojs/image@0.3.1Gravatar Fred K. Bot 2-1/+7
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-03[ci] formatGravatar bholmesdev 1-3/+4
2022-08-03[MDX] Add `headings` and `frontmatter` to layout props (#4134)Gravatar Ben Holmes 4-31/+47
* feat: expose headings on layout props * test: frontmatter AND content * test: headings in layouts * chore: changeset
2022-08-03Remove renderer tag to fix a docs issue (#4127)Gravatar Zade Viggers 1-1/+0
[This page](https://docs.astro.build/en/guides/integrations-guide/) is autogenerated based on the packages in this repo and said packages' tags. Removing the renderer tag here should stop it from appearing in the UI Framework category.
2022-08-02[ci] release (#4116)astro@1.0.0-rc.4@astrojs/prism@0.7.0@astrojs/mdx@0.5.0@astrojs/markdown-remark@0.14.0Gravatar Fred K. Bot 2-2/+19
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-02Refactor @astrojs/prism, fix Prism component import not working (#4114)Gravatar Erika 2-46/+2
* Upgrade @astrojs/prism to a real package, fix component import not working * Remove `@astrojs/prism` as a dependency of `astro` * Update lock file * Refactor to multiple files * Oops, can't have astro imports run inside node * Follow Nate's suggestion on being minors instead of patchs * Update lockfile
2022-08-02Add generic plugin for `page-ssr` injection (#4049)Gravatar Nate Moore 1-7/+0
* feat: add generic page-ssr plugin * refactor: remove page-specific logic from astro/markdown/mdx plugins * refactor: revert changes to vite-plugin-scripts * fix: handle injected `page` scripts in build * fix: prepend injected `page` scripts with `/@id/` in dev Co-authored-by: Nate Moore <nate@astro.build>
2022-08-02[ci] formatGravatar matthewp 1-1/+1
2022-08-02Load configs with Vite when loading with Proload fails (#4112)Gravatar Matthew Phillips 4-3/+14
* 4078 breaking test * Use Vite for loading the config * Try it * Fallback to loading with Vite only when needed * Remove console.error * Remove extra console.log * Add a changeset * Use middlewareMode
2022-08-01[ci] formatGravatar bholmesdev 4-31/+35
2022-08-01[MDX] Add `getHeadings` + generate anchor links (#4095)Gravatar Ben Holmes 12-24/+346
* 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-07-30[ci] release (#4086)astro@1.0.0-rc.3@astrojs/mdx@0.4.0@astrojs/markdown-component@0.2.1Gravatar Fred K. Bot 2-1/+7
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-29[ci] formatGravatar bholmesdev 2-9/+9
2022-07-29feat: support `layout` in MDX frontmatter (#4088)Gravatar Ben Holmes 7-26/+146
* 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-28[ci] release (#4081)create-astro@0.14.3@astrojs/mdx@0.3.1Gravatar Fred K. Bot 2-1/+7
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-28[ci] formatGravatar matthewp 2-3/+6
2022-07-28Ensure file and url are always present in MDX for Astro.glob (#4076)Gravatar Matthew Phillips 5-5/+95
2022-07-28[docs content] MDX layouts (#4077)Gravatar Sarah Rainsberger 1-0/+41
2022-07-26[ci] release (#3972)create-astro@0.14.2astro@1.0.0-rc.1@astrojs/vue@0.5.0@astrojs/vercel@0.3.0@astrojs/tailwind@0.2.5@astrojs/svelte@0.5.0@astrojs/sitemap@0.3.0@astrojs/prefetch@0.0.6@astrojs/partytown@0.1.9@astrojs/node@0.2.0@astrojs/netlify@0.5.0@astrojs/mdx@0.3.0@astrojs/markdown-remark@0.13.0@astrojs/markdown-component@0.2.0@astrojs/lit@0.3.2@astrojs/image@0.2.0@astrojs/deno@0.2.0@astrojs/cloudflare@0.3.0Gravatar Fred K. Bot 2-1/+17
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-26add support for injected page-ssr scripts (#4050)Gravatar Fred K. Schott 1-0/+7
2022-07-21[ci] formatGravatar bholmesdev 3-26/+24
2022-07-21[MDX] Add Prism and Shiki support (#4002)Gravatar Ben Holmes 8-21/+222
* deps: add rehype-prism, shiki, rehype-pretty-code * wip: apply rehype plugins depending on config * wip: cherry-pick jsx-runtime fix? * deps: rehype-pretty-code -> shiki-twoslash, add rehype-raw * wip: add jsx-runtime fix * feat: get shiki working! * deps: add @astrojs/prism, prismjs, unist-util-visit * feat: add prism support * example: add small syntax highlight demo to with-mdx * deps: remove rehype-prism * chore: remove unused async * chore: add .test.js to all mdx tests * test: shiki, shikiConfig, prism * fix: remove "is:raw" from prism output * docs: add syntax highlighting section * chore: add changeset * nit: "Shiki config" -> Shiki config Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Revert "wip: add jsx-runtime fix" This reverts commit 07f4528f449281afb7bbc154b09292244795a183. * docs: link to integration README from example Co-authored-by: Nate Moore <nate@astro.build> Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-07-21[ci] formatastro@0.0.0-rc-20220721064837@astrojs/vue@0.0.0-rc-20220721064837@astrojs/vercel@0.0.0-rc-20220721064837@astrojs/svelte@0.0.0-rc-20220721064837@astrojs/node@0.0.0-rc-20220721064837@astrojs/netlify@0.0.0-rc-20220721064837@astrojs/mdx@0.0.0-rc-20220721064837@astrojs/markdown-component@0.0.0-rc-20220721064837@astrojs/image@0.0.0-rc-20220721064837@astrojs/deno@0.0.0-rc-20220721064837@astrojs/cloudflare@0.0.0-rc-20220721064837Gravatar bholmesdev 2-18/+20
2022-07-20[MDX] Support YAML frontmatter (#3995)Gravatar Ben Holmes 8-5/+185
* chore: remove old comment * deps: add remark-frontmatter * deps: add remark-mdx-frontmatter * fix: handle null or undefined frontmatter key * feat: configure frontmatter plugins with defaults * test: frontmatter and custom frontmatter name * docs: add frontmatterOptions config * docs: add "variables" and "frontmatter" docs * chore: excessible -> accessible * chore: changeset * chore: remove bad mdx comment
2022-07-20[ci] formatGravatar bholmesdev 2-8/+15
2022-07-20[MDX] Support remark and rehype plugins, with defaults (#3977)Gravatar Ben Holmes 6-5/+166
* feaet: allow remark and rehype plugin config * deps: add remark-gfm, remark-smartypants * feat: add gfm and smartypants by default * test: add GFM and remark plugin tests * feat: preserve default plugins with "extends" * docs: add remarkPlugins * docs: add rehypePlugins * chore: changeset * fix: remove skip from mdx tests * chore: dup hyperlink flavor text * chore: authGen -> autoGen * nit: markdown -> Markdown Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com> * nit: markdown -> Markdown 1 Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com> * nit: markdown -> Markdown 2 Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com> * nit: markdown -> Markdown 3 Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com> * nit: markdown -> Markdown 4 Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com> Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-07-20[ci] formatGravatar bholmesdev 1-2/+2
2022-07-20[MDX] Include `url` in glob result (#3981)Gravatar Ben Holmes 8-9/+84
* 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-18[ci] release (#3939)create-astro@0.14.1astro@1.0.0-beta.73@astrojs/vue@0.4.1@astrojs/telemetry@0.4.1@astrojs/svelte@0.4.1@astrojs/solid-js@0.4.1@astrojs/rss@0.2.2@astrojs/react@0.4.2@astrojs/prism@0.6.1@astrojs/preact@0.5.2@astrojs/mdx@0.2.1@astrojs/markdown-remark@0.12.0@astrojs/image@0.1.3v1-betaGravatar Fred K. Bot 2-1/+7
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-15Roll back supported Node engines (#3937)Gravatar Chris Swithinbank 1-1/+1
Fixes #3936
2022-07-13[ci] release (#3903)create-astro@0.14.0astro@1.0.0-beta.70@astrojs/vue@0.4.0@astrojs/telemetry@0.4.0@astrojs/svelte@0.4.0@astrojs/solid-js@0.4.0@astrojs/rss@0.2.1@astrojs/react@0.4.0@astrojs/prism@0.6.0@astrojs/preact@0.5.0@astrojs/mdx@0.2.0@astrojs/markdown-remark@0.11.6Gravatar Fred K. Bot 2-1/+7
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-13Rollback Nodejs Dependancy (#3914)Gravatar Randall 1-1/+1
* Rollback Nodejs Dependancy Closes #3908 Signed-off-by: Randall T. Vasquez <ran.dall@icloud.com> * Create ninety-apes-talk.md
2022-07-12[ci] release (#3894)Gravatar Fred K. Bot 2-1/+7
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-11More integration README fixes (#3885)Gravatar Chris Swithinbank 2-5/+3
* Integration README fixes * More tweaks (mostly code backticks for filenames) * Update changeset * Few more tweaks * Make sure code blocks all have a code language * Use URLs of new docs pages for package homepage * One more stray `<br>` :boot: * Standardise to `sh` instead of `shell`
2022-07-11[ci] release (#3887)create-astro@0.13.0astro@1.0.0-beta.66@astrojs/vue@0.3.0@astrojs/telemetry@0.3.0@astrojs/svelte@0.3.0@astrojs/solid-js@0.3.0@astrojs/react@0.3.0@astrojs/prism@0.5.0@astrojs/preact@0.4.0@astrojs/mdx@0.1.0@astrojs/markdown-remark@0.11.4Gravatar Fred K. Bot 2-1/+7
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-07-11fix(#3071): update supported node versions (#3871)Gravatar Nate Moore 1-1/+1
Co-authored-by: Nate Moore <nate@astro.build>