Skip to content

Commit

Permalink
Merge branch 'fix/safari-regexp' of https://github.com/shuxiaotai/jso…
Browse files Browse the repository at this point in the history
…n2md into new-version
  • Loading branch information
IonicaBizau committed Dec 15, 2020
2 parents ffe1e0f + 997366f commit 639dc60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/converters.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ converters.table = (input, json2md) => {
(Array.isArray(row) ? row : input.headers.map(col_id => row[col_id]))
.map(cell => json2md(cell))
.map(cell => parseTextFormat(cell))
.map(cell => cell.replace(/(?<!(\\))\|/, "\\|"))
.map(cell => cell.replace(/([^\\])\|/, "$1\\|"))
.join(" | ")
).join("\n") + " |";

Expand Down

0 comments on commit 639dc60

Please sign in to comment.