Skip to content

Commit

Permalink
fix code block copy bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Katzeee committed Mar 14, 2024
1 parent a00e91b commit edb46d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion _templates/block_listing.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
- case highlighter
- when 'rouge'
em =title
- content_modified = content.gsub('<td class="code"', '<td class="rouge-code"')
div class=[code_class, "highlighter-#{highlighter}"]
div class=['highlight']
pre class=['highlight']
code =content
code =content_modified
- else
pre class=nowrap? =content

0 comments on commit edb46d0

Please sign in to comment.