-
Notifications
You must be signed in to change notification settings - Fork 592
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
Obsidian: Front Matter Template does not publish "double quotes" to Obsidian YAML #3981
Comments
I don't think that will work because what if the description has quotes in it? |
I don't think thats the issue, i suspect its because we validate in a YAML library and then spit out the validated YAML. But let me verify that with @sywhb One question: why do you need the quotes? Without white space isn't |
I think I might not actually need the double quotations. I'm publishing my vault online using Obsidian-Digital-Garden, and I'm just following the docs here on setting metatags for a page, and the example screenshot shows the aforementioned YAML lines as being surrounded by double quotes. However, I tested on Omnivore article pages which have been published on my site and the metatags all render just fine. The page I actually used as an example in my first post even works – History of Morrowind - The Unofficial Elder Scrolls Pages (UESP). So for my specific use case, this issue is resolved. It might be useful to keep open though for any other possible use-cases where you'd want the Omnivore frontmatter template to publish double quotations. |
Yeah, that's right. We use the library provided by Obsidian to parse YAML file first to validate it and it will remove the outer quotation marks unless the value is a multiline string or some other cases |
Issue
"Double quotation" speech marks entered into the Omnivore plugin's custom frontmatter do not get entered into Obsidian YAML frontmatter.
I have my custom frontmatter template I have the following three lines:
Expected behaviour:
{{{description}}}
" should be published in the YAML as being surrounded by "double quotations"."og:image": "https://i.imgur.com/LmCg5HX.png"
should be published in the YAML as-is.Actual behaviour:
{{{description}}}
is rendered without double quotations in YAML"og:image": "https://i.imgur.com/LmCg5HX.png"
is published asog:image: https://i.imgur.com/LmCg5HX.png
without double quotations in YAMLExample
For an article whose
{{{description}}}
is "A Short History of Morrowind" the frontmatter is published in Obsidian by Omnivore like so:Expected behaviour:
Frontmatter template in Obsidian:
Obsidian YAML frontmatter of an article without double quotations
My full custom frontmatter template looks like this:
The text was updated successfully, but these errors were encountered: