Can't modify Markdown frontmatter from remark plugin #3737
Labels
good first issue
Good for newcomers
help wanted
Issues looking for someone to run with them!
improve or update documentation
Enhance / update existing documentation (e.g. add example, improve description, update for changes)
low effort
What version of
astro
are you using?2.8.3
Are you using an SSR adapter? If so, which one?
none
What package manager are you using?
nom
What operating system are you using?
macOS Ventura
What browser are you using?
Safari
Describe the Bug
The example given for modifying Markdown frontmatter programmatically doesn't seem to work.
Following exactly that example, I can see (with
console.log()
) that my plugin is being called. But in one of my.astro
files I inspect thedata
objects for each post, and the inserted field is not present.(Question: Is there any difference between the
markdown
andmdx
sections of the config file? The documentation seems ambivalent about which to use. I've tried both.)What's the expected result?
The example should add the
customProperty
to the front matter.Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-klm8sa?file=example-remark-plugin.mjs
Participation
The text was updated successfully, but these errors were encountered: