You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Caleb and I accidentally looked into this in a lot of detail within the scope of #1465.
For the body field, that's defined in the schema for the rule collection, it should be extracted into an external JSON file.
Prior to to the markdown being passed into the function (parseMDX) which we're using the generate the AST tree, use regex to transform the markdown syntax into something Tina will eat.
ex.
::: greybox
### our text
our text
:::
to either....
<greybox
content={<>
### our text
our text
</>}
>
OR
<greybox>
### our text
our text
</greybox>
When calling parseMDX, you need to pass in the JSON field as the second param (this tries to match the data in the md file with the structure of the rule).
bradystroud
changed the title
Markdown Components - Migrate to JSX
Markdown Components - Migrate to MDX
Oct 8, 2024
Blocked by #1523
All these components will need to
The text was updated successfully, but these errors were encountered: