Skip to content

Commit 226b504

Browse files
committed
Set html property of block when no language is provided
1 parent f2e4e2c commit 226b504

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ function normalize(lang) {
1717
}
1818

1919
function highlight(lang, code) {
20-
if(!lang) return code;
20+
if(!lang) return {
21+
body: code,
22+
html: false
23+
};
2124

2225
// Normalize lang
2326
lang = normalize(lang);

0 commit comments

Comments
 (0)