feat: added support for reasoning content (#1168)
Some checks failed
Docker Publish / docker-build-publish (push) Has been cancelled
Update Stable Branch / prepare-release (push) Has been cancelled

This commit is contained in:
Anirban Kar
2025-01-25 16:16:19 +05:30
committed by GitHub
parent 660353360f
commit df766c98d4
7 changed files with 230 additions and 116 deletions

View File

@@ -61,7 +61,13 @@ const rehypeSanitizeOptions: RehypeSanitizeOptions = {
tagNames: allowedHTMLElements,
attributes: {
...defaultSchema.attributes,
div: [...(defaultSchema.attributes?.div ?? []), 'data*', ['className', '__boltArtifact__']],
div: [
...(defaultSchema.attributes?.div ?? []),
'data*',
['className', '__boltArtifact__', '__boltThought__'],
// ['className', '__boltThought__']
],
},
strip: [],
};