From ac8479bf610d80a8925a5b1a34ba4ef86b8d831e Mon Sep 17 00:00:00 2001 From: Tangent Wantwight Date: Thu, 27 Jul 2023 21:08:34 -0400 Subject: [PATCH] Fix logic around newline folding/escaping, since test data was being escaped more than expected. --- 3x5.js | 2 +- notcl.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/3x5.js b/3x5.js index 7630677..d7413f1 100644 --- a/3x5.js +++ b/3x5.js @@ -36,7 +36,7 @@ function renderCard(state, code) { let theCard = { id: 100, fields: {}, - code: ` + code: String.raw` h1 Hello, World! para [2 + 2] block { diff --git a/notcl.js b/notcl.js index 9946a3c..43eb6a9 100644 --- a/notcl.js +++ b/notcl.js @@ -15,7 +15,7 @@ function parseNotcl(code) { /* Preprocess */ // fold line endings - code = code.replace(/(?