@danxbot/ui 6.4.1 → 6.4.2

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.js CHANGED
@@ -35357,7 +35357,7 @@ function nL(e, t, n) {
35357
35357
  jt(t, e.start + m, e.start + m + l[2].length, "marker"), a = m;
35358
35358
  }
35359
35359
  for (; i < a && /[ \t]/.test(e.text[i]); ) i++;
35360
- for (; a > i && /[ \t]/.test(e.text[a - 1]); ) a--;
35360
+ if (l) for (; a > i && /[ \t]/.test(e.text[a - 1]); ) a--;
35361
35361
  const c = UR({ text: e.text.slice(i, a), start: e.start + i });
35362
35362
  zt(t, { kind: "heading", level: o }, e.start);
35363
35363
  const u = vg(t, [{ text: e.text.slice(i, a), start: e.start + i }], c, n === "text" ? "heading" : n);