diff --git a/src/pg/core/_master-pattern.pug b/src/pg/core/_master-pattern.pug index 767bf05..ee6e6e7 100644 --- a/src/pg/core/_master-pattern.pug +++ b/src/pg/core/_master-pattern.pug @@ -5,12 +5,17 @@ include ../_config block config -mixin h(h) - if headings[h] - if headings[h].indexOf("|") == -1 - h2= headings[h] +mixin h(h, p = null) + if p !== null + - text = headings[h].replace(/\*\*/g, p) + else + - text = headings[h] + + if text + if text.indexOf("|") == -1 + h2= text else - - var cntnt = headings[h].split("|") + - var cntnt = text.split("|") | <#{cntnt[0]}>#{cntnt[1]} - const getDate = function(){