Skip to content

Commit

Permalink
fix(markdownv2): escape ) in urls
Browse files Browse the repository at this point in the history
  • Loading branch information
EdJoPaTo committed Dec 30, 2021
1 parent 0e051a9 commit 7cea539
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/markdownv2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function monospaceBlock(text: string, programmingLanguage?: string): string {
}

function url(label: string, url: string): string {
return `[${label}](${url})`
return `[${label}](${escapeInternal(url, ')')})`
}

function userMention(label: string, userId: number): string {
Expand Down

0 comments on commit 7cea539

Please sign in to comment.