diff --git a/lib/utils.js b/lib/utils.js index ce9d62d..98399b9 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -14,7 +14,7 @@ exports.escapePipesInTables = str => { let line = lines[i]; if (/^\s*\|.*?\|\s*$/.test(line)) { - lines[i] = line.replace(/(? { + lines[i] = line.replace(/(?:[^`])`((?:\\`|[^`])+)`(?!`)/g, m => { return m.replace(/\s*\|\s*/g, '\\|'); }); }