I have a very surface understanding of mdx, but basically it's a mix of markdown and JSX syntax, no? Didn't know you could define some sort of fields like you seem to do with:
import { MdxLayout } from "components/mdx-layout.tsx";
export const meta = {
slug: "all-time-high",
publishedAt: "2022-09-16T10:00:00.000Z",
title: "All time high",
headerImage: "https://june-changelog.s3.eu-central-1.amazonaws.com/changelog_ath_cd256d0719.png",
authors: [
(...)
I suppose I should be able to hack it by defining it as a JSON frontmatter and some custom delimiters.
If you let me know how you would see this working, I'll try and get something working tomorrow.
Tried to set it up for our open source Changelog though and getting some errors, it doesn't seem to work with .mdx files
https://github.com/juneHQ/changelog
Anyways this looks super promising