Update Core.js

This commit is contained in:
simonpipe 2026-07-10 11:46:05 +02:00
parent 3f0fe24875
commit c3ad5cab5f

View file

@ -1,5 +1,5 @@
/** /**
* SimonUp Core Compiler (Core.js) - Version 1.2b.004 * SimonUp Core Compiler (Core.js) - Version 1.2b.005
* Eine moderne, fluss- und blockorientierte Auszeichnungssprache. * Eine moderne, fluss- und blockorientierte Auszeichnungssprache.
*/ */
class SimonUp { class SimonUp {
@ -288,7 +288,7 @@ class SimonUp {
replaceOutsideTags(new RegExp(rule.symbol + '(.+?)(?:\\/' + rule.symbol + '|\\/|' + rule.symbol + '|$)'), `<${rule.tag}>$1</${tagSimple}>`); replaceOutsideTags(new RegExp(rule.symbol + '(.+?)(?:\\/' + rule.symbol + '|\\/|' + rule.symbol + '|$)'), `<${rule.tag}>$1</${tagSimple}>`);
} }
// Fußnoten abfangen und registrieren statt nur als Title zu setzen // Fußnoten abfangen und registrieren
let self = this; let self = this;
html = html.replace(/\^x\[([^\]]+)\]\^x/g, function(m, content) { html = html.replace(/\^x\[([^\]]+)\]\^x/g, function(m, content) {
self.currentFootnotes.push(content); self.currentFootnotes.push(content);