Ben Holmes
|
d4cd7a59fd
|
Update Markdown type signature to match behavior (#4423)
* 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-25 17:08:43 -04:00 |
|
Ben Holmes
|
f7afdb889f
|
[MDX] Fix remaining inconsistencies with Markdown (#4268)
* 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 18:17:26 -04:00 |
|
Ben Holmes
|
2968ba2b6f
|
[MDX] Add headings and frontmatter to layout props (#4134)
* feat: expose headings on layout props
* test: frontmatter AND content
* test: headings in layouts
* chore: changeset
|
2022-08-03 17:54:55 -04:00 |
|
Ben Holmes
|
1743fe140e
|
feat: support layout in MDX frontmatter (#4088)
* 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-29 11:22:57 -04:00 |
|