diff --git a/src/pg/core/_master-pattern.pug b/src/pg/core/_master-pattern.pug index ee6e6e7..3ad42fe 100644 --- a/src/pg/core/_master-pattern.pug +++ b/src/pg/core/_master-pattern.pug @@ -6,10 +6,10 @@ include ../_config block config mixin h(h, p = null) + - text = headings[h] if p !== null - - text = headings[h].replace(/\*\*/g, p) - else - - text = headings[h] + - text = text.replace(/\*\*/g, p) + if text if text.indexOf("|") == -1