@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.cjs.js
CHANGED
|
@@ -223,7 +223,7 @@ function extractAlertPlaceholders(src) {
|
|
|
223
223
|
out += src.slice(pos, start);
|
|
224
224
|
const afterStart = src.slice(start);
|
|
225
225
|
const relAfter = afterStart.slice(":::alert".length);
|
|
226
|
-
const matchLineEnd = relAfter.search(/\
|
|
226
|
+
const matchLineEnd = relAfter.search(/\s*:::\s*/);
|
|
227
227
|
let endIdx = -1;
|
|
228
228
|
if (matchLineEnd !== -1) {
|
|
229
229
|
endIdx = start + ":::alert".length + matchLineEnd + 1;
|
|
@@ -283,7 +283,7 @@ var RenderMarkdown_default = ({ content = "", searchValue, customComponents, onC
|
|
|
283
283
|
let incomplete = false;
|
|
284
284
|
if (openCount > closeCount) {
|
|
285
285
|
incomplete = true;
|
|
286
|
-
fixedContent += ":::";
|
|
286
|
+
fixedContent += " :::";
|
|
287
287
|
}
|
|
288
288
|
const { text: preprocessed, placeholders } = extractAlertPlaceholders(fixedContent);
|
|
289
289
|
let rawHtml = md.render(preprocessed);
|