summaryrefslogtreecommitdiff
path: root/packages/integrations/mdx (follow)
AgeCommit message (Collapse)AuthorFilesLines
2022-09-09docs: add section on .mdx file support in VS Code (#4694)Gravatar Lloyd Atkinson 1-0/+12
* docs: add section on .mdx file support in VS Code * Update packages/integrations/mdx/README.md Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com> Co-authored-by: Matthew Phillips <matthew@matthewphillips.info> Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com> Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-09-09No πŸ‘ more πŸ‘ server πŸ‘ restarts πŸ‘ on πŸ‘ config πŸ‘ changes (#4578)Gravatar Ben Holmes 1-4/+0
* feat: restart config on add, remove, update * fix: reload for root project configs only * fix: throw when userConfigPath can't resolve * chore: changeset * wip: remove normalizePath before writeFile * refactor: invalidateWithCache -> isConfigReload * wip: mustExist? * debug: config loaded successfully * debug: more logs * debug: MORE logging * fix: normalize resolved config path * debug: yet MORE logging * chore: bump proload * fix: use file path, not URL.pathname * Revert "wip: mustExist?" This reverts commit 8ca8662132532dcdc9fd120868e615ddc60f498e. * chore: remove console log * feat: cleanup restart message, better invalid config handling * chore: update lockfile * chore: fix types * fix: throw helpful error when config does not exist * docs: remove "restart dev server" from integrations * docs: make sure to restart -> try restarting Co-authored-by: Nate Moore <nate@astro.build>
2022-09-07Integrations: Fix NPM instructions to use `npx astro add` again (#4653)Gravatar Tibor Schiemann 1-3/+3
* Fix install instructions to use `npx astro` again * Replace joyful hiccups with regular issues :)
2022-09-02[ci] release (#4589)astro@1.1.4@astrojs/mdx@0.11.1@astrojs/image@0.5.0Gravatar Fred K. Bot 2-1/+7
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-09-01[MDX] Fix: GFM and Smartypants missing by default (#4588)Gravatar Ben Holmes 2-2/+20
* fix: apply Astro defaults on empty md config * chore: changeset
2022-08-31[ci] release (#4555)astro@1.1.3@astrojs/vercel@1.0.2@astrojs/node@1.0.1@astrojs/netlify@1.0.2@astrojs/mdx@0.11.0@astrojs/image@0.4.0@astrojs/deno@1.0.1@astrojs/cloudflare@1.0.2Gravatar Fred K. Bot 2-1/+7
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-30[ci] formatGravatar bholmesdev 3-19/+13
2022-08-30[MDX] Extend Markdown plugin config, with customization options (#4504)Gravatar Ben Holmes 12-254/+428
* test: new combined remark / rehype suite * fix: use with-plugins fixture * chore: remove old mdx plugin tests * docs: add JS docs * docs: update README with thorough example * chore: changeset * fix: add "extends" error message * fix: ignore string-based plugins in md * feat: add warning log for string plugins * docs: highlight `extendPlugins` Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * nit: highlight "extendPlugins" * fix: md plugins type check * chore: "defaults" -> "astroDefaults" * nit: info log when inheriting markdown plugins * refactor: one big log on new behavior * dan: dan nit Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-08-30[ci] release (#4520)astro@1.1.2@astrojs/react@1.1.1@astrojs/mdx@0.10.3@astrojs/markdown-remark@1.1.1@astrojs/lit@1.0.1@astrojs/image@0.3.7Gravatar Fred K. Bot 2-1/+9
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-30Add custom components to mdx integration guide (#4530)Gravatar Kyle F Butts 1-0/+48
* Add custom components to mdx integration guide * Update packages/integrations/mdx/README.md Co-authored-by: Ben Holmes <hey@bholmes.dev> * Update packages/integrations/mdx/README.md Co-authored-by: Ben Holmes <hey@bholmes.dev> * Update packages/integrations/mdx/README.md Co-authored-by: Ben Holmes <hey@bholmes.dev> * Update packages/integrations/mdx/README.md Co-authored-by: Ben Holmes <hey@bholmes.dev> * Incorporate Sarah and Ben's Feedback * Fix what would be an ugly background lol * Sarah taking liberty of removing double text * Add changeset Co-authored-by: Ben Holmes <hey@bholmes.dev> Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-08-28chore: updated shiki (#4519)Gravatar Juan MartΓ­n Seery 2-7/+17
* Upgraded shiki * Use setColorReplacements * no-shadow * Changeset
2022-08-26[ci] release (#4495)create-astro@1.0.1astro@1.1.0@astrojs/solid-js@1.1.0@astrojs/react@1.1.0@astrojs/mdx@0.10.2@astrojs/markdown-remark@1.1.0Gravatar Fred K. Bot 2-1/+7
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-25[ci] release (next) (#4480)create-astro@1.0.1-next.0astro@1.1.0-next.0@astrojs/react@1.1.0-next.0@astrojs/mdx@0.10.2-next.0@astrojs/markdown-remark@1.1.0-next.0Gravatar Fred K. Bot 2-1/+7
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-25Update Markdown type signature to match behavior (#4423)Gravatar Ben Holmes 3-1/+11
* feat: "file" and "url" top-level layout props * test: markdown file and url * test: mdx file and url * feat: update MarkdownInstance + JSDoc improvements * chore: changeset
2022-08-23[ci] release (#4431)astro@1.0.8@astrojs/mdx@0.10.1Gravatar Fred K. Bot 2-1/+9
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-23[ci] formatGravatar matthewp 1-1/+1
2022-08-23Fix MDX style imports when layout is not applied (#4443)Gravatar Ben Holmes 4-0/+19
* fix: add "astro.needsHeadRendering" to MDX * test: style imports in pages without layout * chore: changeset
2022-08-22Improve MDX glob perf - move Layout to async import (#4428)Gravatar Ben Holmes 1-2/+6
* fix: move layout to async import * chore: changeset * docs: clarify async import
2022-08-16[ci] release (#4333)astro@1.0.6@astrojs/mdx@0.10.0Gravatar Fred K. Bot 2-1/+7
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-16integrations: update recommended method for running astro add (#4340)Gravatar Chris Swithinbank 1-2/+2
2022-08-15[ci] formatGravatar bholmesdev 1-3/+5
2022-08-15[MDX] Switch from Shiki Twoslash -> Astro Markdown highlighter (#4292)Gravatar Ben Holmes 5-19/+138
* freat: twoslash -> Astro shiki parser * test: update shiki style check * feat: always apply rehypeRaw * deps: move remark-shiki-twoslash to dev * test: add shiki-twoslash test * docs: update readme with twoslash example * chore: changeset * nit: remove "describe('disabled')"
2022-08-12[ci] release (#4290)astro@1.0.4@astrojs/mdx@0.9.0Gravatar Fred K. Bot 2-1/+14
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-12[ci] formatGravatar bholmesdev 1-1/+4
2022-08-12[MDX] Fix remaining inconsistencies with Markdown (#4268)Gravatar Ben Holmes 6-3/+104
* feat: add "file" and "url" to layout props * feat: add rawContent and compiledContent errs * fix: add "file" and "url" to frontmatter * fix: add separate MDX instance type * types: add MarkdownLayoutProps and MDXLayoutProps * refactor: simplify MDXLayoutProps * test: pass file and url to layout * test: glob components with .default and Content * feat: add <Content /> to MDX * feat: declare MDX type module * fix: [MD] move file and url to layout props only * chore: changeset * chore: bump MDX to "minor" with more details * refactor: remove "file" + "url" top-level props (save for minor) * revert: MDInstance type def updates (save for minor) * fix: MDXInstance "default" + "content" types * fix: bad test layout * chore: remove getHeaders fro *.mdx
2022-08-12[ci] formatGravatar natemoo-re 1-4/+4
2022-08-12Fix namespaced component usage in MDX (#4272)Gravatar Nate Moore 6-0/+109
* fix(#4209): handle namespaced JSX and MDX * chore: add changeset * chore: update lockfile * fix: throw error when componentExport is unresolved * chore: bump compiler * chore: bump compiler * chore: revert example changes Co-authored-by: Nate Moore <nate@astro.build>
2022-08-11[ci] release (#4249)astro@1.0.3@astrojs/prism@1.0.1@astrojs/prefetch@0.0.7@astrojs/preact@1.0.2@astrojs/netlify@1.0.1@astrojs/mdx@0.8.3@astrojs/image@0.3.4Gravatar Fred K. Bot 2-2/+13
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-11[MDX] Pass injected frontmatter to layouts (#4255)Gravatar Ben Holmes 6-10/+74
* fix: move layout generation to remark plugin * test: frontmatter injection in layout * chore: changeset * fix: remove content fallback
2022-08-10Mdx/plugin unshift (#4248)astro@1.0.2@astrojs/preact@1.0.1@astrojs/mdx@0.8.2@astrojs/cloudflare@1.0.1Gravatar Jakob Helgesson 1-2/+2
* Add builtin rehype plugin to beginning * Add Changeset * Do the same to rehypeRaw for consistency
2022-08-10[ci] release (#4228)Gravatar Fred K. Bot 2-1/+7
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-10[MDX] Astro.props.content -> frontmatter (#4237)Gravatar Ben Holmes 1-4/+4
* docs: MDX Astro.props.content -> frontmatter * chore: changeset
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.