From 94172037aef7c567ad2425c27fcdbef6c5acfc44 Mon Sep 17 00:00:00 2001 From: dvs1 Date: Sun, 23 Feb 2025 13:35:04 +1000 Subject: Deal with debdog's color table. --- TODO.md | 1 - notYetAnotherWiki.lua | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/TODO.md b/TODO.md index f597507..0da95b9 100644 --- a/TODO.md +++ b/TODO.md @@ -14,7 +14,6 @@ Syntax highlighting in code blocks. Bugs - -- /users/Debdog.HTML   pandoc can't handle the background table cell colours in the "Background colours" table, which is kinda the point of it. - /users/dunno/Devuan Cluster.HTML   A very lengthy and complex document, I'll likely miss something, but chip away at the obvious. Lots of colour shenanigans. Check the timestamps on the files, only update if source is newer than destination. Meh, it's already 600 times faster than the pandoc version. diff --git a/notYetAnotherWiki.lua b/notYetAnotherWiki.lua index a19c982..fdb5903 100755 --- a/notYetAnotherWiki.lua +++ b/notYetAnotherWiki.lua @@ -119,6 +119,7 @@ local toFile = function(name, key, value) {"::: {."[A-Za-z_. ]+"}"} -> '' / {":::"} -> '' / {"-noComment-"} -> ' -- ' / + {"| bgcolor=#" {([^ ])+} " " } -> "| bgcolor=#%2 " / -- Deal with debdog's color table. {"{#"[A-Za-z_]+"}"} -> '' / . )* ~}]=], { } ):match(body) -- cgit v1.1