fixed: removed header before merge

This commit is contained in:
quenousimporte 2023-02-05 15:11:26 +01:00
parent 175ea44ede
commit c6fab0a1ca
1 changed files with 7 additions and 1 deletions

View File

@ -2255,7 +2255,13 @@ function withsubs()
{ {
kids.forEach(kid => kids.forEach(kid =>
{ {
tempnote.content = tempnote.content.replaceAll("[[" + kid.title + "]]", kid.content); var kidcontent = kid.content;
if (kidcontent.startsWith("---\n"))
{
var pos = kidcontent.indexOf("---\n", 4);
kidcontent = kidcontent.substring(pos + 4);
}
tempnote.content = tempnote.content.replaceAll("[[" + kid.title + "]]", kidcontent);
}); });
kids = children(tempnote); kids = children(tempnote);
} }