@zero-library/common 2.1.9 → 2.1.10
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.
- package/dist/index.cjs.js +2 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +2 -2
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -185,7 +185,7 @@ function extractAlertPlaceholders(src) {
|
|
|
185
185
|
out += src.slice(pos, start);
|
|
186
186
|
const afterStart = src.slice(start);
|
|
187
187
|
const relAfter = afterStart.slice(":::alert".length);
|
|
188
|
-
const matchLineEnd = relAfter.search(/\
|
|
188
|
+
const matchLineEnd = relAfter.search(/\s*:::\s*/);
|
|
189
189
|
let endIdx = -1;
|
|
190
190
|
if (matchLineEnd !== -1) {
|
|
191
191
|
endIdx = start + ":::alert".length + matchLineEnd + 1;
|
|
@@ -245,7 +245,7 @@ var RenderMarkdown_default = ({ content = "", searchValue, customComponents, onC
|
|
|
245
245
|
let incomplete = false;
|
|
246
246
|
if (openCount > closeCount) {
|
|
247
247
|
incomplete = true;
|
|
248
|
-
fixedContent += ":::";
|
|
248
|
+
fixedContent += " :::";
|
|
249
249
|
}
|
|
250
250
|
const { text: preprocessed, placeholders } = extractAlertPlaceholders(fixedContent);
|
|
251
251
|
let rawHtml = md.render(preprocessed);
|