apostrophe in frontmatter #141

Open
opened 2022-03-23 13:56:25 +00:00 by codewithbugs01 · 2 comments
codewithbugs01 commented 2022-03-23 13:56:25 +00:00 (Migrated from github.com)

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

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 commented 2022-11-22 14:32:07 +00:00 (Migrated from github.com)

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"

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 commented 2023-10-20 16:13:18 +00:00 (Migrated from github.com)

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'

~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 in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
rtlabs-llm-agents/gms-gray-matter#141
No description provided.