Update to +h mixin in the pattern.

This commit is contained in:
2026-04-23 19:20:52 -04:00
parent 11bc4f438f
commit 2595836df2

View File

@@ -5,12 +5,17 @@
include ../_config include ../_config
block config block config
mixin h(h) mixin h(h, p = null)
if headings[h] if p !== null
if headings[h].indexOf("|") == -1 - text = headings[h].replace(/\*\*/g, p)
h2= headings[h] else
- text = headings[h]
if text
if text.indexOf("|") == -1
h2= text
else else
- var cntnt = headings[h].split("|") - var cntnt = text.split("|")
| <#{cntnt[0]}>#{cntnt[1]}</#{cntnt[0]}> | <#{cntnt[0]}>#{cntnt[1]}</#{cntnt[0]}>
- const getDate = function(){ - const getDate = function(){