diff --git a/frontend/src/util/helpers.ts b/frontend/src/util/helpers.ts
index e3a7536edcc5891ddf087a119df4a8bee20029f0..8b55485f18d516ccee2c995635e7da2242fc26ce 100644
--- a/frontend/src/util/helpers.ts
+++ b/frontend/src/util/helpers.ts
@@ -130,12 +130,12 @@ export function syntaxPostProcess (code: string): string {
   const spanSuffix = '</span>'
   
   code = code.replace(/(<span class="hljs-comment">)([\s\S]*?)(<\/span>)/gim, (match, p1, p2, p3) => {
-    const splitted = p2.split("")
-    console.log(splitted)
+    const splitted = p2.split(/\n/)
     for (let i = 0; i < splitted.length; i++) {
       splitted[i] = spanPrefix + splitted[i] + spanSuffix
     }
-    return p1 + splitted.join("") + p3
+    
+    return splitted.join("\n")
   })
   return code
 }