[PR #12949] [MERGED] ui: using streamdown AI elements for markdown rendering #60706

Closed
opened 2026-04-29 15:49:33 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/12949
Author: @hoyyeva
Created: 11/4/2025
Status: Merged
Merged: 11/10/2025
Merged by: @hoyyeva

Base: mainHead: hooyeva/streamdown


📝 Commits (6)

📊 Changes

10 files changed (+1849 additions, -2635 deletions)

View changed files

📝 app/ui/app/package-lock.json (+1476 -44)
📝 app/ui/app/package.json (+1 -0)
app/ui/app/src/components/StreamingMarkdownContent.stories.tsx (+0 -614)
app/ui/app/src/components/StreamingMarkdownContent.test.tsx (+0 -522)
📝 app/ui/app/src/components/StreamingMarkdownContent.tsx (+210 -193)
📝 app/ui/app/src/components/Thinking.tsx (+6 -4)
📝 app/ui/app/src/index.css (+0 -787)
app/ui/app/src/lib/highlighter.ts (+156 -0)
app/ui/app/src/utils/processStreamingMarkdown.ts (+0 -24)
app/ui/app/src/utils/remarkStreamingMarkdown.ts (+0 -447)

📄 Description

This PR is replacing the in-house Markdown renderer with Streamdown to keep the component simpler and more consistent. However, there are a few elements we’d still like to customize, such as:

  • Code blocks
  • Citations

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/12949 **Author:** [@hoyyeva](https://github.com/hoyyeva) **Created:** 11/4/2025 **Status:** ✅ Merged **Merged:** 11/10/2025 **Merged by:** [@hoyyeva](https://github.com/hoyyeva) **Base:** `main` ← **Head:** `hooyeva/streamdown` --- ### 📝 Commits (6) - [`8c74f5d`](https://github.com/ollama/ollama/commit/8c74f5ddfd08afbe256d9156ec4a623e4f717209) ui: using streamdown AI elements for markdown rendering - [`74586aa`](https://github.com/ollama/ollama/commit/74586aa9dfa804fdc7a15e14c045bc9df047e0cd) address comments - [`a534d4e`](https://github.com/ollama/ollama/commit/a534d4e9e176e32734f59c5ae8c2fb6d93a11058) fixing thinking not scrolling issue - [`536c987`](https://github.com/ollama/ollama/commit/536c987c39c51411d067c2f640165ac5bc0e929b) address comment - [`e309c80`](https://github.com/ollama/ollama/commit/e309c80474a926a99b78e66fc7f5a3f5eca542d9) address comments - [`3501a4b`](https://github.com/ollama/ollama/commit/3501a4bdf95c57ed102bce30836caae3466166ff) address comment ### 📊 Changes **10 files changed** (+1849 additions, -2635 deletions) <details> <summary>View changed files</summary> 📝 `app/ui/app/package-lock.json` (+1476 -44) 📝 `app/ui/app/package.json` (+1 -0) ➖ `app/ui/app/src/components/StreamingMarkdownContent.stories.tsx` (+0 -614) ➖ `app/ui/app/src/components/StreamingMarkdownContent.test.tsx` (+0 -522) 📝 `app/ui/app/src/components/StreamingMarkdownContent.tsx` (+210 -193) 📝 `app/ui/app/src/components/Thinking.tsx` (+6 -4) 📝 `app/ui/app/src/index.css` (+0 -787) ➕ `app/ui/app/src/lib/highlighter.ts` (+156 -0) ➖ `app/ui/app/src/utils/processStreamingMarkdown.ts` (+0 -24) ➖ `app/ui/app/src/utils/remarkStreamingMarkdown.ts` (+0 -447) </details> ### 📄 Description This PR is replacing the in-house Markdown renderer with [Streamdown](https://streamdown.ai/) to keep the component simpler and more consistent. However, there are a few elements we’d still like to customize, such as: - Code blocks - Citations --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-29 15:49:33 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#60706