@orkestrel/markdown 0.0.14 → 0.0.15

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.
@@ -1867,7 +1867,7 @@ function markdownToHTML(node) {
1867
1867
  const current = frame.node;
1868
1868
  if (!frame.expanded) {
1869
1869
  if (frame.depth >= 64) {
1870
- values.push("value" in current && typeof current.value === "string" ? {
1870
+ values.push("value" in current && (0, _orkestrel_contract.isString)(current.value) ? {
1871
1871
  category: "text",
1872
1872
  value: current.value
1873
1873
  } : void 0);
@@ -2209,7 +2209,7 @@ function renderMarkdown(node) {
2209
2209
  const current = frame.node;
2210
2210
  if (!frame.expanded) {
2211
2211
  let escaped = "";
2212
- if ((frame.depth >= 64 || current.element === "text") && "value" in current && typeof current.value === "string") for (let index = 0; index < current.value.length; index += 1) {
2212
+ if ((frame.depth >= 64 || current.element === "text") && "value" in current && (0, _orkestrel_contract.isString)(current.value)) for (let index = 0; index < current.value.length; index += 1) {
2213
2213
  const character = current.value[index] ?? "";
2214
2214
  const atLineStart = index === 0 || current.value[index - 1] === "\n";
2215
2215
  if (current.element === "text" && character === "!" && index === current.value.length - 1 && frame.escapeBang) {
@@ -3913,7 +3913,7 @@ var Markdown = class Markdown {
3913
3913
  #document;
3914
3914
  #spans;
3915
3915
  constructor(input) {
3916
- if (typeof input === "string") {
3916
+ if ((0, _orkestrel_contract.isString)(input)) {
3917
3917
  const [document, spans] = parseProvenance(input);
3918
3918
  this.#document = document;
3919
3919
  this.#spans = new Map(spans);