How should I make mdx.sync
omit Frontmatter in its output using remark-frontmatter
?
#1590
-
Hi, so I'm trying to figure out how to use remark-frontmatter. Currently my MDX files are compiled as such:
However, with the following at the top of my MDX files:
It still gets rendered with the Frontmatter intact. From what I understand, this plugin should be generating a JSON object with the extracted Frontmatter. I'm not seeing this anywhere, and the Frontmatter is still intact in How exactly should I be doing this? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Start by adjusting the frontmatter marker settings, you have [remarkFrontmatter, { type: "yaml", marker: "-" }] but in the mdx document, +++
title = "Test title"
+++ frontmatter will match to the marker type you set it to use, here you set it to parse |
Beta Was this translation helpful? Give feedback.
Start by adjusting the frontmatter marker settings, you have
-
set as the markerbut in the mdx document,
+
is usedfrontmatter will match to the marker type you set it to use, here you set it to parse
-
not+
.