You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update chat docs so the AG-UI install path includes required protocol packages, and clarify that marked is the supported required markdown peer while the plain-text path is only a runtime fallback.
`marked` is a required peer dependency used to render assistant message markdown (code blocks, tables, headings). The chat components ship with their own design tokens and component-scoped styles — no Tailwind, PostCSS, or global stylesheet import is required.
42
+
`marked` is a required peer dependency used to render assistant message markdown (code blocks, tables, headings). The AG-UI adapter also needs the protocol packages `@ag-ui/client` and `@ag-ui/core`. The chat components ship with their own design tokens and component-scoped styles — no Tailwind, PostCSS, or global stylesheet import is required.
Copy file name to clipboardExpand all lines: apps/website/content/docs/chat/guides/markdown.mdx
+7-8Lines changed: 7 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ AI messages in `@threadplane/chat` can render full markdown -- headings, code bl
7
7
The markdown pipeline has two stages:
8
8
9
9
1.**Streaming renderer**: `<chat-streaming-md>` parses markdown into node keys and renders those keys through `cacheplaneMarkdownViews`.
10
-
2.**Sanitized HTML helper**: `renderMarkdown()` converts markdown text to sanitized HTML using `marked`when it is installed, falling back to escaped plain text with `<br>` newline conversion.
10
+
2.**Sanitized HTML helper**: `renderMarkdown()` converts markdown text to sanitized HTML using the required `marked`peer dependency. If `marked` cannot be loaded at runtime, it falls back to escaped plain text with `<br>` newline conversion.
11
11
12
12
## The renderMarkdown() Function
13
13
@@ -37,8 +37,8 @@ function renderMarkdown(content: string, sanitizer: DomSanitizer): SafeHtml
0 commit comments