We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd57b4b commit 554e5a7Copy full SHA for 554e5a7
client/src/routes/internal/highlight/+server.ts
@@ -81,6 +81,10 @@ const highlight = async (
81
for (const token of line) {
82
lineHtml += `<span style="color: ${token.variants.dark.color}">${he.encode(token.content)}</span>`;
83
}
84
+ // ensure empty lines are rendered
85
+ if (line.length === 0) {
86
+ lineHtml += `\n`;
87
+ }
88
lineHtml += `</span>`;
89
result += lineHtml;
90
0 commit comments