Skip to content

Commit 12001ec

Browse files
committed
Make [code] tags compatible with highlight.js
1 parent ef91666 commit 12001ec

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

template/bbcode.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@
6767
<!-- END quote_extended -->
6868

6969
<!-- BEGIN code_open -->
70-
<div class="codetitle"><b>{L_CODE}{L_COLON}</b></div><pre class="codecontent">
70+
<div class="codetitle"><b>{L_CODE}{L_COLON}</b></div><pre><code class="codecontent">
7171
<!-- END code_open -->
7272

7373
<!-- BEGIN code_close -->
74-
</pre>
74+
</code></pre>
7575
<!-- END code_close -->
7676

7777
<!-- BEGIN inline_attachment_open -->

theme/stylesheet.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -665,6 +665,10 @@ input:focus, select:focus, textarea:focus {
665665
background-color: #FAFAFA;
666666
}
667667

668+
pre > .codecontent {
669+
font-size: inherit;
670+
}
671+
668672
.postimage {
669673
max-width: 100%;
670674
}

0 commit comments

Comments
 (0)