« get me outta code hell

content: transformContent: no break between items of 10+ <ol> - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-10-02 14:01:13 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-10-02 14:01:13 -0300
commitd03cbb21aef567a1e7e0f0bdb7b1addd38759f72 (patch)
tree8e3e76902504dbda6a09260388e9229795309bc0 /src/content
parent03a8835666d30b51ddf6c4d2f90668b1d4252cdb (diff)
content: transformContent: no break between items of 10+ <ol>
Diffstat (limited to 'src/content')
-rw-r--r--src/content/dependencies/transformContent.js4
1 files changed, 2 insertions, 2 deletions
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 <br> / "  ", and which don't precede or follow
           // indented text (by at least two spaces).
-          .replace(/(?<!^ *(?:-|\d\.).*|^>.*|^  .*\n*|  $|<br>$)\n+(?!  |\n)/gm, '\n\n') /* eslint-disable-line no-regex-spaces */
+          .replace(/(?<!^ *(?:-|\d+\.).*|^>.*|^  .*\n*|  $|<br>$)\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');