Skip to content

Commit 09e23c4

Browse files
authored
Merge pull request #23 from ThistleSifter/escape-curly-braces
Escape curly braces in markdown
2 parents a23b87e + 14e8628 commit 09e23c4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

cli/src/prebuild.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ const populateTemplate = (contents: string, title: string, templateContents: str
119119
'MARKDOWN_PLACEHOLDER',
120120
contents
121121
.replace(/`/gu, '\\`')
122+
.replace(/(\{|\})/gu, "{'$1'}")
122123
)
123124
.replace('TITLE_PLACEHOLDER', kabobToSentenceCase(title))
124125
}

0 commit comments

Comments
 (0)