From 5ffa189383dd716f12b56b8cae2ba0d075996cf1 Mon Sep 17 00:00:00 2001 From: NGPixel Date: Thu, 11 Mar 2021 19:23:24 -0500 Subject: [PATCH] fix: add v-pre to pre tags at render time --- server/modules/rendering/html-core/renderer.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/modules/rendering/html-core/renderer.js b/server/modules/rendering/html-core/renderer.js index 33cf949e..1c618781 100644 --- a/server/modules/rendering/html-core/renderer.js +++ b/server/modules/rendering/html-core/renderer.js @@ -261,6 +261,10 @@ module.exports = { } iterateMustacheNode($.root()) + $('pre').each((idx, elm) => { + $(elm).attr('v-pre', true) + }) + // -------------------------------- // STEP: POST // --------------------------------