diff --git a/docs/generate.js b/docs/generate.js index a9d0f759..fecdb4af 100644 --- a/docs/generate.js +++ b/docs/generate.js @@ -25,6 +25,7 @@ function generate(pathname) { var markdown = fs.readFileSync(pathname, "utf-8") var fixed = markdown .replace(/(`[^`]+?)<(.*`)/gim, "$1<$2") // fix generic syntax + .replace(/<\//gim, " |, )+)(\|)(\S+)`/gim, function(match, a, b, c) { // fix pipes in code tags return "" + (a + b + c).replace(/\|/g, "|") + "" })