Skip to content

Commit 7e68369

Browse files
committed
move code captions to above syntax-highlighted code
1 parent f834ce1 commit 7e68369

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Rules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ class Nanoc3::Filter
5555
match = scan_until %r{</#{tag}>}
5656
@output << %{<div class="example">\n}
5757
@output << %{<div class="filename">#{filename}</div>\n} if filename
58+
@output << %{<div class="caption">#{caption}</div>\n} if caption
5859
@output << %{<pre class="brush: #{replace}; gutter: false; toolbar: false"><code>} <<
5960
CGI.escapeHTML(match.pre_match) << %{</code></pre>}
60-
@output << %{<div class="caption">#{caption}</div>\n} if caption
6161
@output << %{</div>\n}
6262
end
6363

0 commit comments

Comments
 (0)