superbee 0.4.3-pre.8 → 0.4.3-pre.9

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.
@@ -42855,6 +42855,9 @@ function textOf(node2) {
42855
42855
  if (!Array.isArray(children)) return "";
42856
42856
  return children.map((child) => textOf(child)).join("");
42857
42857
  }
42858
+ function renderTextFallback(node2, index2) {
42859
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "doc-markdown-fallback", children: textOf(node2) }, index2);
42860
+ }
42858
42861
  function isBlankInline(node2) {
42859
42862
  if (node2.type === "break") return true;
42860
42863
  if (node2.type === "text") return (node2.value ?? "").trim() === "";
@@ -42949,7 +42952,7 @@ function renderNode(node2, state, depth, index2) {
42949
42952
  state.count++;
42950
42953
  if (depth > MAX_DEPTH) {
42951
42954
  state.bounded = true;
42952
- return textOf(node2);
42955
+ return renderTextFallback(node2, index2);
42953
42956
  }
42954
42957
  switch (node2.type) {
42955
42958
  case "text":
@@ -43050,7 +43053,7 @@ function renderNode(node2, state, depth, index2) {
43050
43053
  case "html":
43051
43054
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "doc-raw-html", children: node2.value }, index2);
43052
43055
  default:
43053
- return textOf(node2);
43056
+ return renderTextFallback(node2, index2);
43054
43057
  }
43055
43058
  }
43056
43059
  function renderEdgeList(links, state, index2) {
@@ -43069,7 +43072,7 @@ function renderEdgeList(links, state, index2) {
43069
43072
  if (state.options.profile === "inert") {
43070
43073
  rows.push(
43071
43074
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { className: "doc-edge-row", "data-aslite-doc-id": to, children: [
43072
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "doc-edge-verb", children: verb }),
43075
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "doc-edge-verb doc-markdown-fallback", children: verb }),
43073
43076
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "doc-edge-arrow", "aria-hidden": "true", children: "\u2192" }),
43074
43077
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "doc-edge-target", children: target })
43075
43078
  ] }, i)
@@ -43084,7 +43087,7 @@ function renderEdgeList(links, state, index2) {
43084
43087
  href: documentHref(to, state.options),
43085
43088
  onClick: (event) => navigateDoc(event, to, state.options),
43086
43089
  children: [
43087
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "doc-edge-verb", children: verb }),
43090
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "doc-edge-verb doc-markdown-fallback", children: verb }),
43088
43091
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "doc-edge-arrow", "aria-hidden": "true", children: "\u2192" }),
43089
43092
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "doc-edge-target", children: target })
43090
43093
  ]