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
Is your feature request related to a problem? Please describe.
I often add comments to front matter. For example
relatedPosts:
- fxcf9e6db7765 # the post about x
- c473788b6886 # the post about y
If I use the Front Matter UI to update content —for example by clicking the "now" button on a datetime field— those comments are deleted.
Describe the solution you'd like
Preserve comments when changes via the UI trigger rewriting the front matter. Change only what I explicitly changed.
Describe alternatives you've considered
Currently I git-add files before using the FrontMatter UI, then use the Front Matter UI, then check the un-cached diff and remove any changes I didn't ask for.
Thanks, @olets, for opening this issue. Comments in YAML are tricky. I have yet to find a good YAML parser that can preserve those comments. The difficulty is in converting the YAML to JSON where all comments are lost, and then back to YAML where they need to be included again.
I'll try to see if there is any progress since the issue you referred to on this.
Is your feature request related to a problem? Please describe.
I often add comments to front matter. For example
If I use the Front Matter UI to update content —for example by clicking the "now" button on a datetime field— those comments are deleted.
Describe the solution you'd like
Preserve comments when changes via the UI trigger rewriting the front matter. Change only what I explicitly changed.
Describe alternatives you've considered
Currently I git-add files before using the FrontMatter UI, then use the Front Matter UI, then check the un-cached diff and remove any changes I didn't ask for.
Additional context
I think this is distinct from
which appears to be about comments in the Front Matter config.
The text was updated successfully, but these errors were encountered: