summaryrefslogtreecommitdiff
path: root/packages/integrations/mdx/test (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-11-27Remove support for simple objects in endpoints (#9181)Gravatar Bjorn Lu 5-26/+15
* Deprecate simple object from endpoints * Update changeset * Add missing Response return Co-authored-by: Happydev <81974850+MoustaphaDev@users.noreply.github.com> * Update .changeset/clever-beds-notice.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> --------- Co-authored-by: Happydev <81974850+MoustaphaDev@users.noreply.github.com> Co-authored-by: Matthew Phillips <matthew@skypack.dev> Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-11-28Remove deprecated features from Astro 3.0 (#9168)Gravatar Bjorn Lu 5-5/+5
2023-11-21Update all dependencies (#9138)Gravatar Bjorn Lu 3-3/+3
Co-authored-by: delucis <delucis@users.noreply.github.com>
2023-09-13[ci] formatGravatar Princesseuh 1-5/+5
2023-09-13[MDX] Support `img` component prop for optimized images (#8468)Gravatar Ben Holmes 8-0/+111
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2023-08-31[ci] formatGravatar matthewp 1-2/+2
2023-08-31Prevent React hook call warnings when used with MDX (#8324)Gravatar Matthew Phillips 4-2/+34
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-08-24Update breaking dependencies (#8201)Gravatar Bjorn Lu 2-4/+4
2023-08-23Update non-major dependencies (#8199)Gravatar Bjorn Lu 1-1/+1
2023-08-18Switch `build.inlineStylesheets` default to auto (#8118)Gravatar Arsh 2-0/+4
* switch inlineStylesheets default * use previous default for astro/test * use previous default for content-collections-render.test.js * integrations: node, deno, mdx, markdown * typedocs: switch inlineStylesheets default * Update example to show non-default * add changeset * reword changeset --------- Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-08-17config: remove ~/assets alias (#8113)Gravatar Erika 1-0/+9
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> Co-authored-by: Mia Kanashi <chad@redpilled.dev>
2023-08-16feat: unflag experimental.assets (#7921)Gravatar Erika 1-3/+0
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2023-08-01Refactor and improve Astro config loading flow (#7879)Gravatar Bjorn Lu 2-2/+2
2023-07-14nit: export props has been unnecessary.. forever (#7646)Gravatar Erika 1-1/+1
2023-07-03feat: use typescript-eslint@v6's reworked configs (#7425)Gravatar Josh Goldberg ✨ 3-6/+2
2023-06-21Update safe dependencies (#7430)Gravatar Bjorn Lu 2-5/+5
2023-06-13Use stub image service for tests (#7376)Gravatar Bjorn Lu 1-2/+6
2023-06-09[ci] formatGravatar MoustaphaDev 1-33/+30
2023-06-09Do not silence runtime MDX errors (#7089)Gravatar Happydev 2-0/+47
* test: add fixture * chore: remove unneeded files in fixture * test: update test mdx filfe * test: add test case * mark component as mdx * add error builder utility * throw error when it comes from an MDX component * chore: update lock file * Add comment to refactor later * apply review * add missing comma
2023-06-06Fix [Object AsyncGenerator] logging for Markdoc components (#7307)Gravatar Ben Holmes 7-124/+0
* Revert "Bug 6672 (#7062)" This reverts commit cf621340b00fda441f4ef43196c0363d09eae70c. * chore: remove unused test * chore: changeset
2023-05-30[ci] formatGravatar matthewp 1-5/+8
2023-05-30Bug 6672 (#7062)Gravatar wulinsheng123 7-0/+121
* fix miss a head when the templaterender has a promise * fix * add some test * test files move to md directory * fix add * delect file --------- Co-authored-by: wuls <linsheng.wu@beantechs.com>
2023-05-25Add MDX optimize option (#7151)Gravatar Bjorn Lu 8-0/+103
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-05-03Upgrade shiki to v0.14.1 (#6932)Gravatar Bjorn Lu 1-1/+1
* Upgrade shiki * Update themes * Update languages * Simplify * Fix compat for other remark code * Update theme again * Fix language gen * Add changeset * Fix code * Update test theme colors * Update changeset * Fix test again
2023-04-27Fix changeset publish (#6923)Gravatar Bjorn Lu 6-0/+6
2023-04-27Upgrade turbo (#6911)Gravatar Bjorn Lu 1-1/+1
2023-04-13feat(mdx): Add support for turning ![]() into <Image> (#6824)Gravatar Erika 6-0/+68
2023-04-06 Prevent body head content injection in MDX when using layout (#6779)Gravatar Matthew Phillips 4-0/+54
2023-03-09Prevent HTML-escape of raw strings in JSX script/style tags (#6459)Gravatar Bjorn Lu 4-0/+152
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2023-02-16Support rehype plugins that inject namespaced attributes 2 (#6253)Gravatar Bjorn Lu 1-1/+1
2023-02-15Revert previous mdx breaking change (#6252)Gravatar Bjorn Lu 1-1/+1
2023-02-15[ci] formatGravatar bluwy 1-4/+4
2023-02-15Support rehype plugins that inject namespaced attributes (#6243)Gravatar Bjorn Lu 1-0/+35
* Support rehype plugins that inject namespaced attributes * Fix rehype property casing
2023-02-13Fix head injection in body with slots.render() and head buffering (#6216)Gravatar Matthew Phillips 6-8/+48
* Fix head injection in body with slots.render() and head buffering * Adding a changeset * An MDX test too
2023-02-09[ci] formatGravatar matthewp 1-1/+1
2023-02-09Fix head injection misplacement with Astro.slots.render() (#6196)Gravatar Matthew Phillips 2-0/+35
* Fix head injection misplacement with Astro.slots.render() * Adding a changeset * Fix case of JSX with no layout * missing break
2023-02-07Add additional scoping for head buffering (#6152)Gravatar Matthew Phillips 14-0/+150
* Add additional scoping for head buffering * Add test for direct usage of nested component * Add special scoping for Astro.scopes.render() * Generate propagation map during the build * Move to a maybeHead instruction * Properly serialize for SSR * More conservative scoping * Maybe had should honor result._metadata.hasRenderedHead * Properly type slots * Allow template result to be passed * Add changeset
2023-02-02Prevent eager rendering of head content in multi-level MDX layout (#6107)Gravatar Matthew Phillips 1-2/+2
* Prevent eager rendering of head content in multi-level MDX layout * Adding a changeset * Remove old comment * Keep track of slot position as well
2023-01-30Simplified head injection (#6034)Gravatar Matthew Phillips 12-0/+160
* Simplified head injection * Make renderHead also yield an instruction * Add changeset * Add mdx test
2023-01-26Fix MDX heading IDs generation when using a frontmatter reference (#5978)Gravatar HiDeoo 2-0/+88
* Fix MDX heading IDs generation when using a frontmatter reference * Hoist safelyGetAstroData() call and add statement null check
2023-01-06Add SmartyPants flag (#5769)Gravatar Ben Holmes 2-0/+37
* feat: add smartypants flag * test: smartypants in markdown and mdx * docs: Smartypants -> SmartyPants * chore: changeset * chore: update changeset with 1.0 -> 2.0 in mind * chore: bump to minor change
2023-01-03Markdown and MDX configuration rework (#5684)Gravatar Ben Holmes 2-84/+76
* feat: change extendDefaults -> gfm * deps: remove smartypants from md/remark * tests: update markdown plugin tests * fix: borked lockfile * feat: allow all Markdown options in MDX config, with extend * deps: remove smartypants from MDX * chore: remove unused `mode` property * chore: remark rehype types * chore: dead code * fix: order of default config properties * refactor: move md defaults to remark * fix: RemarkRehype type * fix: apply defaults based on MD defaults * chore: update plugin tests * chore: add syntaxHighlight test * refactor: remove drafts from config defaults * docs: new MDX config options * chore: add changeset * edit: test both extends for syntax highlight * refactor: remove MDX config deep merge * docs: update README and changeset * edit: avoid -> disable Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * edit: `drafts` clarification Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * edit: remove "scare quotes" Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * docs: MDX config options redraft * docs: add migration * chore: changeset heading levels * refactor: githubFlavoredMarkdown -> gfm * chore: remove unused imports Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-01-03Change frontmatter injection ordering (#5687)Gravatar Ben Holmes 6-16/+15
* feat: make user frontmatter accessible in md * test: new frontmatter injection * refactor: move injection utils to remark pkg * fix: add dist/internal to remark exports * feat: update frontmater injection in mdx * tests: new mdx injection * chore: changeset * chore: simplify frontmatter destructuring * fix: remove old _internal references * refactor: injectedFrontmatter -> remarkPluginFrontmatter * docs: add content collections change * chore: changeset heading levels
2022-12-20MD/MDX collect headings refactor (#5654)Gravatar Chris Swithinbank 1-0/+91
2022-12-05Support rendering `<Fragment>` in MDX `<Content />` component (#5522)Gravatar Chris Swithinbank 9-2/+257
2022-11-22[ci] formatGravatar matthewp 1-12/+16
2022-11-22[MDX] Support remark-rehype options from Astro Markdown config (#5427)Gravatar Thomas Jaggi 2-0/+86
* [MDX] Support remark-rehype options from Astro Markdown config * [MDX] Add remarkRehype to MdxOptions, extend with default markdown config * [MDX] Add remarkRehype to README * [MDX] Fix remarkRehype inheritance, add tests * [MDX] Update remarkRehype docs in README Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * [MDX] Fix remarkRehype docs Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-11-09[ci] formatGravatar matthewp 1-1/+1
2022-11-09Preserve code element node meta for rehype syntax highlighters (#5335)Gravatar Bjorn Lu 2-1/+29
2022-10-24[MDX] Support `recmaPlugins` config (#5146)Gravatar Ben Holmes 2-0/+42
* feat: support recma plugins * chore: add `test:match` to MDX * chore: changeset * docs: add recmaPlugins to README