@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.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(/\n:::\s*(\n|$)/);
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);