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

apostrophe in frontmatter #141

Open
codewithbugs01 opened this issue Mar 23, 2022 · 2 comments
Open

apostrophe in frontmatter #141

codewithbugs01 opened this issue Mar 23, 2022 · 2 comments

Comments

@codewithbugs01
Copy link

If there is an apostrophe in the frontmatter it causes and invalid 'data' and 'content' values.

For example:

title: My Brother's Title
author: Mike James

@crystalfp
Copy link

Make sense. This is invalid YAML. Normally I change title to title: My Brother’s Title or quoting the title as title: "My Brother's Title"

@joyzhong
Copy link

joyzhong commented Oct 20, 2023

Is there a way to have both single and double quotes in the value?

Found a way - you can escape a single quote by doubling it:
title: 'My Brother'’s Title'

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

3 participants