Skip to content

Astro components in MDX files #25

@siahdohoni

Description

@siahdohoni

Hi, I am new to Tina CMS and got interested in it specifically for it being git-based and because this Astro Starter Template is provided.
I noticed that the example MDX file 'using-mdx.mdx' does not include the part where an Astro component (a Button) is included in the original Astro template. I am wondering if the reason for that is that there is still no support for Astro components in MDX with Tina CMS?
If that is the case, are there any plans to support Astro components in the future?

Furthermore, adding a component into the raw MDX file does not render the component as it would with plain Astro. It just renders the text of the code as plain text into the page. The reason for that is probably how 'AdminBlogPost.tsx' is implemented. Is there a workaround to at least get Astro components rendered properly even if they are not displayed correctly in the Admin console?

Many thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions