Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Metadata is being transformed on gist update #261

Open
4 tasks
ShravanSunder opened this issue Mar 28, 2023 · 1 comment
Open
4 tasks

Metadata is being transformed on gist update #261

ShravanSunder opened this issue Mar 28, 2023 · 1 comment

Comments

@ShravanSunder
Copy link

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

@timrogers
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants