Skip to content

Commit

Permalink
fix: markdown table cell (#6514)
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 committed Jun 15, 2020
1 parent 12c6698 commit 4933209
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/workers/pr/body/updates-table.ts
Expand Up @@ -61,7 +61,10 @@ export function getPrUpdatesTable(config: BranchConfig): string {
for (const row of tableValues) {
let val = '|';
for (const column of tableColumns) {
val += ` ${row[column].replace(/^@/, '@​')} |`;
const content = row[column]
.replace(/^@/, '@​')
.replace(/\|/g, '\\|');
val += ` ${content} |`;
}
val += '\n';
rows.push(val);
Expand Down

0 comments on commit 4933209

Please sign in to comment.