summaryrefslogtreecommitdiff
path: root/packages/integrations/mdx/test/mdx-plugins.test.js (follow)
AgeCommit message (Collapse)AuthorFilesLines
2024-08-08update formatter config (#11640)Gravatar Darius 1-4/+4
* update formatter config * format --------- Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2024-07-17fix(deps): update all non-major dependencies (#11426)Gravatar renovate[bot] 1-2/+2
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-05-08MDX integration v3 (#10935)Gravatar Bjorn Lu 1-0/+24
* fix(mdx): convert remark-images-to-component plugin to a rehype plugin (#10697) * Remove fs read for MDX transform (#10866) * Tag MDX component for faster checks when rendering (#10864) * Use unified plugin only for MDX transform (#10869) * Only traverse children and handle mdxJsxTextElement when optimizing (#10885) * Rename to `optimize.ignoreComponentNames` in MDX (#10884) * Allow remark/rehype plugins added after mdx to work (#10877) * Improve MDX optimize with sibling nodes (#10887) * Improve types in rehype-optimize-static.ts * Rename `ignoreComponentNames` to `ignoreElementNames` I think this better reflects what it's actually doing * Simplify plain MDX nodes in optimize option (#10934) * Format code * Minimize diff changes * Update .changeset/slimy-cobras-end.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> --------- Co-authored-by: Armand Philippot <59021693+ArmandPhilippot@users.noreply.github.com> Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-03-13[ci] update lockfile (#10234)Gravatar Houston (Bot) 1-2/+2
Co-authored-by: matthewp <matthewp@users.noreply.github.com> Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-02-21chore: use biome to sort imports - only test files (#10180)Gravatar Emanuele Stoppa 1-3/+3
* chore: use biome to sort imports * do the sorting * Update package.json Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com> --------- Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2024-01-31migrate MDX tests (#9894)Gravatar Alex Nguyen 1-22/+28
2023-08-01Refactor and improve Astro config loading flow (#7879)Gravatar Bjorn Lu 1-1/+1
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-01-06Add SmartyPants flag (#5769)Gravatar Ben Holmes 1-0/+35
* 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 1-84/+50
* 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>
2022-10-24[MDX] Support `recmaPlugins` config (#5146)Gravatar Ben Holmes 1-0/+38
* feat: support recma plugins * chore: add `test:match` to MDX * chore: changeset * docs: add recmaPlugins to README
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 1-0/+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>