stream-markdown-parser 0.0.59-beta.7 → 0.0.59-beta.8
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 +12 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -12334,10 +12334,18 @@ function processTokens(tokens, options) {
|
|
|
12334
12334
|
break;
|
|
12335
12335
|
}
|
|
12336
12336
|
case "inline":
|
|
12337
|
-
|
|
12338
|
-
|
|
12339
|
-
|
|
12340
|
-
|
|
12337
|
+
{
|
|
12338
|
+
const parsed = parseInlineTokens(token.children || [], String(token.content ?? ""), void 0, {
|
|
12339
|
+
requireClosingStrong: options?.requireClosingStrong,
|
|
12340
|
+
customHtmlTags: options?.customHtmlTags
|
|
12341
|
+
});
|
|
12342
|
+
if (parsed.length === 0) {} else if (parsed.every((n) => n.type === "html_block")) result.push(...parsed);
|
|
12343
|
+
else result.push({
|
|
12344
|
+
type: "paragraph",
|
|
12345
|
+
raw: String(token.content ?? ""),
|
|
12346
|
+
children: parsed
|
|
12347
|
+
});
|
|
12348
|
+
}
|
|
12341
12349
|
i += 1;
|
|
12342
12350
|
break;
|
|
12343
12351
|
default:
|