From f0484c84179c0b3dd21468e6532aa40040a6fcad Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sat, 25 Feb 2023 17:51:31 -0500 Subject: [PATCH] fix: Restore newlines in code line numbers as safety measure --- shared/editor/plugins/Prism.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/editor/plugins/Prism.ts b/shared/editor/plugins/Prism.ts index 549f2f5ee..86d11fd55 100644 --- a/shared/editor/plugins/Prism.ts +++ b/shared/editor/plugins/Prism.ts @@ -104,7 +104,7 @@ function getDecorations({ const lineCountText = new Array(lineCount) .fill(0) .map((_, i) => padStart(`${i + 1}`, gutterWidth, " ")) - .join(" "); + .join(" \n"); lineDecorations.push( Decoration.node(