Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: markdown table cell #6514

Merged
merged 2 commits into from Jun 15, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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