From 5294c5c764581d324bc0e3fe7cc7677256258716 Mon Sep 17 00:00:00 2001 From: Q Date: Sat, 6 Jan 2024 19:58:01 +0200 Subject: [PATCH] allow dokuwiki syntax links. this update is adhoc, might need to streamline later.. --- index.html | 38 +++++++++++++++++++++++++++++--------- 1 file changed, 29 insertions(+), 9 deletions(-) diff --git a/index.html b/index.html index d7f334d..77ef7dc 100644 --- a/index.html +++ b/index.html @@ -102,6 +102,10 @@ function make_link(md) { if (match != null) { return "
  • "+match[1]+""+match[2]+""+match[4]; } + var match=dwLinkReg.exec(md); + if (match != null) { + return "
  • "+match [3]+""+match[4]; + } match=linkPlain.exec(md); if (match != null) { return "
  • "+match[1]+""+match[2]+""+match[3]; @@ -110,8 +114,8 @@ function make_link(md) { } function make_head(c,index="") { - var name=c.substring(1).trim(); - var head=c.replace(/ /g," "); + var name=parse_header(c); + var head=name.replace(/ /g," "); var id=name.replace(/ /g,"")+"_"+index; return ''+ '
    '+head+'
    '+ @@ -139,11 +143,13 @@ function make_menu() { sel.appendChild(opt); var anchor_index = 0; for (c=0; c