feat(ui): render assistant replies as Markdown
This commit is contained in:
@@ -21,6 +21,20 @@ connection modes, Docker, settings, and usage limits. See the
|
||||
[documentation index](../docs/README.md), [architecture](../docs/client/architecture.md),
|
||||
and [change history](CHANGELOG.md) for implementation details and history.
|
||||
|
||||
Assistant replies render Markdown with Marked and DOMPurify. Their pinned,
|
||||
checked-in browser modules are served from `vendor/`, including upstream
|
||||
licenses, so the UI does not require a CDN or a Node.js runtime. To refresh the
|
||||
browser dependencies with Node.js 20 or newer after updating `package.json`:
|
||||
|
||||
```bash
|
||||
cd s2s-client
|
||||
npm install --ignore-scripts
|
||||
npm run vendor
|
||||
```
|
||||
|
||||
Commit `package-lock.json` and the generated `vendor/` files together. Existing
|
||||
locked versions can be restored with `npm ci --ignore-scripts`.
|
||||
|
||||
Build from the repository root so the container includes the documentation:
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user