Skip to content

Enhancement: forcePropertyValueQuotes #713

Description

@altano

Is your feature request related to a problem? Please describe.
When I edit a title with FM and it removes the quotes, I might accidentally add invalid characters to the title manually outside of FM. Removing/adding quotes as necessary is only good if you exclusively edit the content in FM, which isn't true for me.

Describe the solution you'd like
Just like how we have a frontMatter.taxonomy.noPropertyValueQuotes option to force remove quotes from some fields, it would be nice if we had a frontmatter.taxonomy.forcePropertyValueQuotes option that would let me say "always quote the title and description fields" (because I know it is too risky for FM to remove the quotes).

ASIDE: both of these options probably belong as options on the fields themselves, right? I suggested putting it in the same place as noPropertyValueQuotes but perhaps it should be on the field (setting.frontMatter.taxonomy.contentTypes.items.properties.fields.description)?

The other reason: I frankly prefer the consistency of my title and description fields always being quoted. Having it be as-needed makes it inconsistent and I don't love that.

Describe alternatives you've considered
I can't think of any alternatives that solve my issues. And these are definitely issues I can live with, so no alternatives are strictly required!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions