Add language as class on code block.

This commit is contained in:
Sergio Martínez Portela 2022-09-29 23:48:56 +02:00
parent cc8d7d0bc5
commit 2d6a994476

View File

@ -305,7 +305,7 @@ def render_list_item(element, acc):
def render_code_block(element, acc):
acc.append('<pre><code>')
acc.append('<pre class="{}"><code>'.format(element.subtype.lower()))
content = html.escape(element.lines)
# Remove indentation common to all lines