YAML frontmatter: reformatting issues
Opened this issue · 1 comments
When using 'prettify', I keep running into the following formatting issues:
-
I have my YAML frontmatter headers in the "compact" variant (e.g. all tags on one line).
prettify
changes this to the "expanded" variant.
It would be great if the existing formatting would be preserved upon rewrites. -
For custom YAML fields that have no value/space, rewriting changes their values to a "null" text. I'd prefer that the empty values remain as-is.
-
I have three fields "date created", "date last seen" and "date modified" in the frontmatter. Each has a value with the format "YYYY-MM-DD[T]HH:MM:SS"
Whenprettify
runs, it correctly updates the value of "date modified" according to the "Header template" defined in it's settings. But at the same time, the value of "date last seen" is reformatted withYYYY-MM-DDTHH:mm.SSS[Z]
even
though this is not defined anywhere.
Obsidian: 0.10.8
Markdown prettifier: 0.0.8
Hello,
I jump in the wagon to add, about dates: in frontmatter, I sometimes have dates without time, for example for a person's biography. I add a date of birth and a date of death with this format "YYYY-MM-DD", and have no interest in time for these values. Markdown prettifier adds a time (final format: "YYYY-MM-DDTHH:mm.SSS[Z]").