summaryrefslogtreecommitdiff
path: root/packages/integrations/mdx/test/mdx-frontmatter.test.js (follow)
AgeCommit message (Collapse)AuthorFilesLines
2022-08-25Update Markdown type signature to match behavior (#4423)Gravatar Ben Holmes 1-1/+5
* 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-12[ci] formatGravatar bholmesdev 1-1/+4
2022-08-12[MDX] Fix remaining inconsistencies with Markdown (#4268)Gravatar Ben Holmes 1-0/+11
* 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-08[MDX] Remove `frontmatterOptions` (#4204)Gravatar Ben Holmes 1-17/+0
* feat: remove frontmatterOptions config * test: remove custom frontmatter suite * deps: remove remark-mdx-frontmatter * docs: remove `frontmatterOptions` config * chore: changeset
2022-08-03[ci] formatGravatar bholmesdev 1-3/+4
2022-08-03[MDX] Add `headings` and `frontmatter` to layout props (#4134)Gravatar Ben Holmes 1-26/+25
* feat: expose headings on layout props * test: frontmatter AND content * test: headings in layouts * chore: changeset
2022-07-29feat: support `layout` in MDX frontmatter (#4088)Gravatar Ben Holmes 1-0/+31
* 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-21[MDX] Add Prism and Shiki support (#4002)Gravatar Ben Holmes 1-0/+45
* 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>