Add language as class on code block.
This commit is contained in:
parent
cc8d7d0bc5
commit
2d6a994476
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user