summaryrefslogtreecommitdiff
path: root/packages/integrations/mdx/test (follow)
AgeCommit message (Collapse)AuthorFilesLines
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
2022-09-30P5: fix MDX memory leak (#4939)Gravatar Nate Moore 6-0/+60
* fix(astro): tag jsx vnodes with renderer so errors are properly handled * chore: fix missing package in test Co-authored-by: Nate Moore <nate@astro.build>
2022-09-28Remove shamefully-hoist (#4842)Gravatar Bjorn Lu 3-5/+11
2022-09-26[ci] formatGravatar bholmesdev 1-10/+6
2022-09-26Fix: correctly transform `import.meta.env.*` in MDX (#4858)Gravatar Ben Holmes 5-0/+119
* fix: serialize route pattern for Netlify edge Co-authored-by: Jackie Macharia <jackiewmacharia> * fix: escape import.meta.env in MDX compiler output * test: env vars in mdx * chore: changeset * deps: estree-util-visit, @types/estree * feat: inject import.meta.env w/ recma * feat: pull importMetaEnv from vite + astro configs * test: `import.meta.env` in JSX * fix: lockfile * chore: update changeset * fix: remove stray stashed commit
2022-09-01[MDX] Fix: GFM and Smartypants missing by default (#4588)Gravatar Ben Holmes 1-0/+11
* fix: apply Astro defaults on empty md config * chore: changeset
2022-08-30[ci] formatGravatar bholmesdev 1-9/+3
2022-08-30[MDX] Extend Markdown plugin config, with customization options (#4504)Gravatar Ben Holmes 8-173/+206
* 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-25Update Markdown type signature to match behavior (#4423)Gravatar Ben Holmes 2-1/+9
* 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] formatGravatar matthewp 1-1/+1
2022-08-23Fix MDX style imports when layout is not applied (#4443)Gravatar Ben Holmes 3-0/+14
* fix: add "astro.needsHeadRendering" to MDX * test: style imports in pages without layout * chore: changeset