Update to +h mixin in the pattern.
This commit is contained in:
@@ -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
|
else
|
||||||
- var cntnt = headings[h].split("|")
|
- text = headings[h]
|
||||||
|
|
||||||
|
if text
|
||||||
|
if text.indexOf("|") == -1
|
||||||
|
h2= text
|
||||||
|
else
|
||||||
|
- var cntnt = text.split("|")
|
||||||
| <#{cntnt[0]}>#{cntnt[1]}</#{cntnt[0]}>
|
| <#{cntnt[0]}>#{cntnt[1]}</#{cntnt[0]}>
|
||||||
|
|
||||||
- const getDate = function(){
|
- const getDate = function(){
|
||||||
|
|||||||
Reference in New Issue
Block a user