Skip to content

Commit 0264ff9

Browse files
committed
Merge pull request konklone#52 from konklone/large-files
Disable color highlighting on large json files, and remove csvkit link
2 parents bb5ab75 + 598ad33 commit 0264ff9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

index.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@
6666
if (json) {
6767
var pretty = JSON.stringify(json, undefined, 2);
6868
$(".json code").html(pretty);
69-
hljs.highlightBlock($(".json code").get(0));
69+
if (pretty.length < (50 * 1024))
70+
hljs.highlightBlock($(".json code").get(0));
7071
} else
7172
$(".json code").html("");
7273

@@ -362,7 +363,7 @@ <h1>Convert JSON to CSV</h1>
362363
</div>
363364

364365
<div class="warning">
365-
Extremely large files may cause trouble &mdash; the conversion is done inside your browser. In that case, try out the powerful <a href="http://csvkit.readthedocs.org/en/latest/scripts/in2csv.html">csvkit</a>.
366+
Extremely large files may cause trouble &mdash; the conversion is done inside your browser.
366367
</div>
367368
</section>
368369

0 commit comments

Comments
 (0)