@knid/agentx 0.1.7 → 0.1.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 +10 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -352,6 +352,16 @@ marked.use(
|
|
|
352
352
|
tab: 2
|
|
353
353
|
})
|
|
354
354
|
);
|
|
355
|
+
marked.use({
|
|
356
|
+
renderer: {
|
|
357
|
+
text(token) {
|
|
358
|
+
if (typeof token === "object" && "tokens" in token && token.tokens) {
|
|
359
|
+
return this.parser.parseInline(token.tokens);
|
|
360
|
+
}
|
|
361
|
+
return typeof token === "object" ? token.text : token;
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
});
|
|
355
365
|
function renderMarkdown(text3) {
|
|
356
366
|
return marked.parse(text3);
|
|
357
367
|
}
|