From d03cbb21aef567a1e7e0f0bdb7b1addd38759f72 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Wed, 2 Oct 2024 14:01:13 -0300 Subject: content: transformContent: no break between items of 10+
    --- src/content/dependencies/transformContent.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/content/dependencies') diff --git a/src/content/dependencies/transformContent.js b/src/content/dependencies/transformContent.js index 4a0a4985..09211d29 100644 --- a/src/content/dependencies/transformContent.js +++ b/src/content/dependencies/transformContent.js @@ -557,9 +557,9 @@ export default { // Expand line breaks which don't follow a list, quote, // or
    / " ", and which don't precede or follow // indented text (by at least two spaces). - .replace(/(?.*|^ .*\n*| $|
    $)\n+(?! |\n)/gm, '\n\n') /* eslint-disable-line no-regex-spaces */ + .replace(/(?.*|^ .*\n*| $|
    $)\n+(?! |\n)/gm, '\n\n') /* eslint-disable-line no-regex-spaces */ // Expand line breaks which are at the end of a list. - .replace(/(?<=^ *(?:-|\d\.).*)\n+(?!^ *(?:-|\d\.))/gm, '\n\n') + .replace(/(?<=^ *(?:-|\d+\.).*)\n+(?!^ *(?:-|\d+\.))/gm, '\n\n') // Expand line breaks which are at the end of a quote. .replace(/(?<=^>.*)\n+(?!^>)/gm, '\n\n'); -- cgit 1.3.0-6-gf8a5