obsidian-share-as-gist icon indicating copy to clipboard operation
obsidian-share-as-gist copied to clipboard

Metadata is being transformed on gist update

Open ShravanSunder opened this issue 1 year ago • 1 comments

original meta data 2023-03-28 0305 Obsidian 2023 Finance Corporate Finance Indicators - shravan-pkm - Obsidian v1 1 16

metadata after gist update 2023-03-28 0305 Obsidian 2023 Finance Corporate Finance Indicators - shravan-pkm - Obsidian v1 1 16

The existing metadata is being modfiied.

  • [ ] I dont' think the gists data is correct in terms of sub data and indent
  • [ ] It looks like empty strings aliases is turned into null
  • [ ] tags and emojis are being changed. they should be array format. and emojis and others shoudl not be changed.
  • [ ] dates are beign modfied

In general only gist metadata should be modified. @timrogers

ShravanSunder avatar Mar 28 '23 12:03 ShravanSunder

Thanks for flagging this!

The indentation of the gists data looks fine to me. But it does look like the library we're using for working with YAML front-matter, gray-matter, is doing some normalization on YAML input it processes. I'm not going to have time to address this - but you would be welcome to make a contribution to fix this issue.

timrogers avatar Apr 15 '23 17:04 timrogers