Replies: 1 comment
-
|
Weird I thought I already answered this one 🤪 If you want to put markdown in frontmatter (as a string then), you would have to use a runtime markdown lib (like react-markdown?) to render that string in your React code. MDX won't process your frontmatter at compilation time, it only sees a string |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm generating a table using several fields retrieved from the blog post front matter. The code to fill in the array looks like this:
The table is rendered by a simple component:
The result looks ok.
Now I would like to be able to enter some formatting (bold, italics, etc) in the
frontMatter.eventSummaryfield.I tried both HTML and markdown syntax, with
**...**,<b>...</b>, and none were rendered. I also tried<MDXContent>... </MDXContent>, but to no avail.Is there any way to achieve this?
Beta Was this translation helpful? Give feedback.
All reactions