site

My personal website.

Date: Thu, 15 Jul 2021 23:15:09 +0200

Fix generation of verbatim blocks in html

Diffstat:

M generate                            |       8 +++++++-

1 file changed, 7 insertions(+), 1 deletion(-)

@@ -109,11 +109,17 @@ html {
 }
 /^```/ {
     preformatted = !preformatted;
+    if (html) {
+        if (preformatted)
+            print "<pre><code>";
+        else
+            print "</code></pre>";
+    }
     next;
 }
 preformatted {
     if (html)
-        print "<pre><code>" $0 "</pre></code>";
+        print $0;
     else
         print "t  " $0;
     next;