@luckydraw/cumulus 0.27.25 → 0.27.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -44,7 +44,8 @@
|
|
|
44
44
|
|
|
45
45
|
// ─── Styles ─────────────────────────────────────────────────────────────────
|
|
46
46
|
var STYLES = [
|
|
47
|
-
'.cumulus-widget * { box-sizing: border-box;
|
|
47
|
+
'.cumulus-widget * { box-sizing: border-box; }',
|
|
48
|
+
'.cumulus-widget *:not([class^="blex-"]):not([class*=" blex-"]) { margin: 0; padding: 0; }',
|
|
48
49
|
|
|
49
50
|
'.cumulus-widget {',
|
|
50
51
|
' font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;',
|
|
@@ -202,7 +203,7 @@
|
|
|
202
203
|
'.blex-block-container {',
|
|
203
204
|
' margin: 0.6em 0;',
|
|
204
205
|
' border-radius: 8px;',
|
|
205
|
-
' overflow:
|
|
206
|
+
' overflow: visible;',
|
|
206
207
|
' min-height: 2em;',
|
|
207
208
|
'}',
|
|
208
209
|
'.blex-block-container[data-blex-ready="true"] {',
|
|
@@ -1235,10 +1236,10 @@
|
|
|
1235
1236
|
});
|
|
1236
1237
|
|
|
1237
1238
|
// Phase 2: Escape HTML in the non-code portions
|
|
1238
|
-
// We need to escape line by line between tokens
|
|
1239
|
-
var parts = processed.split(/(\x00CODEBLOCK_\d+\x00)/);
|
|
1239
|
+
// We need to escape line by line between tokens, preserving both codeblock and blex tokens
|
|
1240
|
+
var parts = processed.split(/(\x00CODEBLOCK_\d+\x00|\x00BLEX_\d+\x00)/);
|
|
1240
1241
|
var escapedParts = parts.map(function (part) {
|
|
1241
|
-
if (/^\
|
|
1242
|
+
if (/^\x00(?:CODEBLOCK|BLEX)_\d+\x00$/.test(part)) return part; // keep token as-is
|
|
1242
1243
|
return escapeHtml(part);
|
|
1243
1244
|
});
|
|
1244
1245
|
var html = escapedParts.join('');
|