Skip to content

Commit 14e8628

Browse files
Escape curly braces in markdown
1 parent 53c2757 commit 14e8628

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)