Skip to content

Commit 8eb0508

Browse files
committed
feat: improve highlighter
1 parent ff0db1c commit 8eb0508

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

playground/src/composables/useHighlighter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export function useHighlighter() {
2222
return "";
2323
}
2424
if (!highlighter.value) {
25-
return toValue(code);
25+
return `<pre>${toValue(code)}</pre>`;
2626
}
2727
return highlighter.value.codeToHtml(toValue(code)!, {
2828
lang: toValue(lang) || "",

0 commit comments

Comments
 (0)