Skip to content

Commit 28cce32

Browse files
committed
Set a higher threshold for showing code blocks
1 parent 0687ffc commit 28cce32

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

assets/site.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function createCollapsableCode() {
1616
document.querySelectorAll('pre > code').forEach(function (codeBlock) {
1717
var codeText = codeBlock.textContent || "";
1818
var lineCount = codeText.split('\n').length;
19-
if (lineCount <= 2) return;
19+
if (lineCount <= 5) return;
2020

2121
// Create details/summary wrapper
2222
var details = document.createElement('details');

0 commit comments

Comments
 (0)