Add language as class on code block.
This commit is contained in:
parent
cc8d7d0bc5
commit
2d6a994476
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue