Skip to content

fix(cli): unescape embedded quotes in publish frontmatter parser - #25

Open
sairam0424 wants to merge 1 commit into
developfrom
fix/publish-frontmatter-unescape
Open

fix(cli): unescape embedded quotes in publish frontmatter parser#25
sairam0424 wants to merge 1 commit into
developfrom
fix/publish-frontmatter-unescape

Conversation

@sairam0424

Copy link
Copy Markdown
Owner

Summary

  • `emit.ts` escapes embedded quotes in frontmatter values as `\"` when writing
  • `publish.ts`'s parser was stripping only the outer quotes, leaving the backslash-escapes intact on read
  • This fix unescapes them back on parse

Test plan

  • Verify a frontmatter value with an embedded quote round-trips correctly through emit -> publish

emit.ts escapes embedded quotes in frontmatter values as \" when
writing; publish.ts's parser was stripping only the outer quotes and
leaving the backslash-escapes intact on read.
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

Successfully merging this pull request may close these issues.

1 participant