From e7b7ee181bd8183c6cdd08e9c5e9669868e1b2a8 Mon Sep 17 00:00:00 2001 From: Govindas Date: Tue, 25 Jan 2022 16:05:07 +0200 Subject: [PATCH] Unfinished navigation bar remake --- generate.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/generate.py b/generate.py index 82073db..a0609a2 100644 --- a/generate.py +++ b/generate.py @@ -9,10 +9,18 @@ import html def generateNavigationBar(lines): global navbar navbar = E + rawhtml = False + htmlstring = "" for id, line in enumerate(lines): - title, link = line.strip().split(";", 1) - navbar = navbar.li(HTML("" + title + "")) + #parse raw HTML + rawhtml, navbar, htmlstring = parseRawHTML(navbar, line, htmlstring, rawhtml, id, len(lines)) + + #parse markdown + if not rawhtml: + navbar = navbar.li(HTML(parseMarkdown(navbar, line))) + #title, link = line.strip().split(";", 1) + #navbar = navbar.li(HTML("" + title + "")) def parseRawHTML(doc, line, htmlstring, rawhtml, id, maxlines): #raw html start