obsidian-digital-garden icon indicating copy to clipboard operation
obsidian-digital-garden copied to clipboard

Command "Add publish flag" changes other frontmatter attributes

Open davidkopp opened this issue 1 year ago • 1 comments

Currently, the command "Add publish flag" changes other frontmatter attributes. That can be problematic. Example:

---
aliases: ["One alias, with a comma included"]
tags: ["tag1", "tag2"]
---

becomes:

---
aliases: One alias, with a comma included
tags: tag1,tag2
dg-publish: true
---

Now, the alias is incorrect because the quotation marks are missing. In general I don't like it, that this command changes other frontmatter attributes.

davidkopp avatar Apr 04 '23 10:04 davidkopp

2024 and this is still an issue tags:

  • abc
  • xyz becomes tags: abc,xyz

Also data with "" in it get the "" stripped out, making a total mess.

Please leave existing data alone

SteveJohnSteele avatar Jan 28 '24 01:01 SteveJohnSteele