From 2d6a994476898f84cfbe00bd285385f6c5b9b140 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Mart=C3=ADnez=20Portela?= Date: Thu, 29 Sep 2022 23:48:56 +0200 Subject: [PATCH] Add language as class on code block. --- scripts/generate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/generate.py b/scripts/generate.py index 96c19d9..70d2de3 100644 --- a/scripts/generate.py +++ b/scripts/generate.py @@ -305,7 +305,7 @@ def render_list_item(element, acc): def render_code_block(element, acc): - acc.append('
')
+    acc.append('
'.format(element.subtype.lower()))
     content = html.escape(element.lines)
 
     # Remove indentation common to all lines