Skip to content
This repository was archived by the owner on Mar 16, 2023. It is now read-only.

Commit 52687bc

Browse files
committed
Suggestion added!
1 parent c092c45 commit 52687bc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

assets/js/app.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,9 @@ marked.setOptions(
106106
smartLists: true,
107107
smartypants: true,
108108
highlight: function(code, lang) //use highlight.js for syntax highlighting.
109-
{
109+
{
110+
if (!lang) return highlight.highlightAuto(code).value;
111+
110112
try
111113
{
112114
content = highlight.highlight(lang, code).value;

0 commit comments

Comments
 (0)