Skip to content

How should I make mdx.sync omit Frontmatter in its output using remark-frontmatter? #1590

Answered by ChristianMurphy
ajaypillay asked this question in Q&A
Discussion options

You must be logged in to vote

Start by adjusting the frontmatter marker settings, you have - set as the marker

[remarkFrontmatter, { type: "yaml", marker: "-" }]

but in the mdx document, + is used

+++
title = "Test title"
+++

frontmatter will match to the marker type you set it to use, here you set it to parse - not +.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ajaypillay
Comment options

@ChristianMurphy
Comment options

@ajaypillay
Comment options

Answer selected by ajaypillay
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants