From 6c7d721de3cecde83d889c813577ceb30c47e052 Mon Sep 17 00:00:00 2001 From: simonpipe Date: Tue, 7 Jul 2026 21:19:13 +0200 Subject: [PATCH] Update Core.js --- Core.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Core.js b/Core.js index 700c49e..d07c52d 100644 --- a/Core.js +++ b/Core.js @@ -197,13 +197,13 @@ class SimonUp { const id = this._slugify(fullTitle); this.headings.push({ level: lvl, text: fullTitle, id: id }); - return `${fullTitle}${rest}`; + return '' + fullTitle + '' + rest; }); // Regel B: Vom TOC ausgeschlossene Titel (3#- Titel 3#- Restlicher Text) html = html.replace(/([1-6])#-\s*([^#]+?)\s*\1#-(.*)/g, (match, level, title, rest) => { const lvl = parseInt(level); - return `${title.trim()}${rest}`; + return '' + title.trim() + '' + rest; }); // Regel C: Manuelle Nummerierung (3# Titel 3# Restlicher Text) @@ -212,14 +212,14 @@ class SimonUp { const id = this._slugify(title.trim()); this.headings.push({ level: lvl, text: title.trim(), id: id }); - return `${title.trim()}${rest}`; + return '' + title.trim() + '' + rest; }); // Regel D: Das schnelle, solitäre # für H1 (# Titel # Restlicher Text) html = html.replace(/#([^#]+)#(.*)/g, (match, title, rest) => { const id = this._slugify(title.trim()); this.headings.push({ level: 1, text: title.trim(), id: id }); - return `

${title.trim()}

${rest}`; + return '

' + title.trim() + '

' + rest; }); // 3. STANDARD FLUSS-FORMATIERUNGEN (In priorisierter Reihenfolge)