Commit Graph

120 Commits

Author SHA1 Message Date
streamdown-github-app[bot] 3fc772f3b1 Version Packages (#258)
Co-authored-by: streamdown-bot[bot] <streamdown-bot[bot]@users.noreply.github.com>
2025-11-24 23:27:38 -08:00
Hayden Bleasel 6fc3fa06cd Resolves #158 2025-11-24 23:02:10 -08:00
Eli Ozcan b2e832f667 fix: validate language before creating highlighter (#257)
* fix: validate language before highlighting

* fix: highlighter language validation function types

* add: changeset
2025-11-24 21:45:58 -08:00
streamdown-github-app[bot] 32a70a7a4b Version Packages (#256)
Co-authored-by: streamdown-bot[bot] <streamdown-bot[bot]@users.noreply.github.com>
2025-11-24 09:54:09 -08:00
Hayden Bleasel e4e5bb51f9 Fix unit tests 2025-11-24 09:52:09 -08:00
zhdzb 00ca9a9c36 Add: panZoom control option to support chart zoom functionality (#253) 2025-11-24 09:47:53 -08:00
kavinkasper a4899494e7 fix: add missing tooltip support to action buttons (#254)
* fix: add missing title attributes to action buttons for accessibility

* Create vast-cameras-move.md

---------

Co-authored-by: kavin kumar <kavin.kumar@agilepoint.com>
Co-authored-by: Hayden Bleasel <hello@haydenbleasel.com>
2025-11-24 09:46:17 -08:00
Hayden Bleasel cfc8c37826 Fix p tags inside list items 2025-11-24 09:45:01 -08:00
streamdown-github-app[bot] 5938cf7c69 Version Packages (#252)
Co-authored-by: streamdown-bot[bot] <streamdown-bot[bot]@users.noreply.github.com>
2025-11-23 14:37:42 -08:00
Hayden Bleasel 74cac00f9b Fix code block data attributes 2025-11-23 14:17:34 -08:00
streamdown-github-app[bot] 5ba4200a2a Version Packages (#251)
Co-authored-by: streamdown-bot[bot] <streamdown-bot[bot]@users.noreply.github.com>
2025-11-23 14:00:05 -08:00
Hayden Bleasel 1e547d492a Fix code blocks in dark mode 2025-11-23 13:58:18 -08:00
streamdown-github-app[bot] 0222c62a71 Version Packages (#250)
Co-authored-by: streamdown-bot[bot] <streamdown-bot[bot]@users.noreply.github.com>
2025-11-23 11:34:01 -08:00
Hayden Bleasel dbd198f3cc Undo lucide import optimization 2025-11-23 11:32:29 -08:00
streamdown-github-app[bot] c3649b9fe3 Version Packages (#248)
Co-authored-by: streamdown-bot[bot] <streamdown-bot[bot]@users.noreply.github.com>
2025-11-22 21:43:48 -08:00
Hayden Bleasel 49b6692213 246 v162 typeerror import processdefaultcwd is not a function (#247)
* Create tanstack-router test app

* Add Streamdown

* Replace ReactMarkdown with Streamdown

* Use AI Gateway

* Fix streamdown to build browser only
2025-11-22 21:37:54 -08:00
streamdown-github-app[bot] 945bd5033e Version Packages (#245)
Co-authored-by: streamdown-bot[bot] <streamdown-bot[bot]@users.noreply.github.com>
2025-11-22 19:04:28 -08:00
Hayden Bleasel e6bf09a1ae Update lucide-icon-optimization.md 2025-11-22 19:00:34 -08:00
Hayden Bleasel 476167eab7 Bundle size optimization (#244)
* Direct icon imports

* Lazy load mermaid and shiki until used

* Only load KaTeX when maths is present

* Add changesets

* Improve test app output

* Create lucide-react.d.ts

* Update packages/streamdown/lib/code-block/skeleton.tsx

Co-authored-by: vercel[bot] <35613825+vercel[bot]@users.noreply.github.com>

---------

Co-authored-by: vercel[bot] <35613825+vercel[bot]@users.noreply.github.com>
2025-11-22 18:50:11 -08:00
streamdown-github-app[bot] 66550f6e3f Version Packages (#243)
Co-authored-by: streamdown-bot[bot] <streamdown-bot[bot]@users.noreply.github.com>
2025-11-21 20:16:53 -08:00
Hayden Bleasel bdca13b7d6 Create crisp-cloths-dig.md 2025-11-21 20:11:38 -08:00
streamdown-github-app[bot] b7f4b0cb0b Version Packages (#232)
Co-authored-by: streamdown-bot[bot] <streamdown-bot[bot]@users.noreply.github.com>
2025-11-21 20:04:56 -08:00
Hayden Bleasel 093cd5cb76 Create lemon-parents-peel.md 2025-11-21 15:44:57 -08:00
Hayden Bleasel 090c82e39a Create quick-pans-juggle.md 2025-11-21 15:17:50 -08:00
Hayden Bleasel 606209d10c Fix Code Blocks (#240)
* Display fallback html

* Rebuild code blocks on codeToTokens

* Remove unused code

* Fix flashing during re-rendering

* Remove useRef

* Switch back to JS Regex engine

* Create single highlighter

* Create container

* Restore singleton cache for highlighters

* Update static.tsx

* Fix tests

* Reapply memoization, consolidate effects, etc.

* Remove Static Code Block

* Run Ultracite

* Fix rendering flashes

* Add token highlight cache

* Update settings.json

* Create flat-gifts-fix.md
2025-11-21 14:55:50 -08:00
Hayden Bleasel 4e12df6209 Performance optimizations (#237)
* Merge contexts

* Fix unit tests

* Enhanced memoization

* Add caching layer to markdown parser

* Fix TS / lint errors

* Fix act() warnings in tests

* Add LRU cache to Markdown processor

* Syntax HighlightManager optimizations

* Switch to single highlighting instance

* Update global.css

* Shift light/dark mode syntax highlighting to CSS

* Fix Fumadocs affecting code blocks

* Fix code block static mode

* Run Ultracite

* Fix tests

* Ultracite fixes

* Cleanup code block implementation

* Update packages/streamdown/index.tsx

Co-authored-by: vercel[bot] <35613825+vercel[bot]@users.noreply.github.com>

* Create every-cats-clean.md

---------

Co-authored-by: vercel[bot] <35613825+vercel[bot]@users.noreply.github.com>
2025-11-20 15:17:41 -08:00
Hayden Bleasel 6f19ee03e7 Remove dependency on react-markdown 2025-11-19 18:31:53 -08:00
Hayden Bleasel 872da1afd1 197 feature request custom error component for mermaid rendering errors (#235)
* Add MermaidErrorComponent support

* Update docs

* Merge mermaid props

* Merge mermaid contexts

* Run Ultracite

* Update index.tsx

* Create favicon.ico

* Update cjk-support.mdx

* Create plain-singers-clean.md

* Update mermaid.tsx
2025-11-19 14:52:29 -08:00
Hayden Bleasel b55cbdc954 Fix security issues, improve performance (#233)
* Resolves https://github.com/vercel/streamdown/security/code-scanning/9

* Resolves https://github.com/vercel/streamdown/security/code-scanning/7

* Resolves https://github.com/vercel/streamdown/security/code-scanning/6

* Resolves https://github.com/vercel/streamdown/security/code-scanning/3

* Resolves https://github.com/vercel/streamdown/security/code-scanning/1

* Bump deps, resolves https://github.com/vercel/streamdown/security/dependabot/10

* Run Ultracite

* Create major-spoons-do.md

* Update parse-incomplete-markdown.ts

* Update packages/streamdown/lib/parse-incomplete-markdown.ts

Co-authored-by: vercel[bot] <35613825+vercel[bot]@users.noreply.github.com>

* Update parse-incomplete-markdown.test.ts

---------

Co-authored-by: vercel[bot] <35613825+vercel[bot]@users.noreply.github.com>
2025-11-19 13:57:04 -08:00
Hayden Bleasel 936af5b40e Create sharp-ads-give.md 2025-11-19 09:30:06 -08:00
Hazem Abdennadher 22cbaeb055 feat: add support for exporting mermaid diagram to svg and png (#229)
* feat: add support for exporting mermaid diagram to svg and png

Implemented the ability to export Mermaid diagrams in SVG, PNG, and MMD formats. Updated the Mermaid component to include a download dropdown for selecting the desired format. Enhanced tests to cover the new download features.

* fix: trigger download callback after exporting diagram in PNG format
2025-11-19 09:28:36 -08:00
Hayden Bleasel 28ab339d18 Create lucky-cobras-fold.md 2025-11-19 09:27:21 -08:00
Hayden Bleasel 52db013a3b Static Mode (#231)
* Implement mode

* Add tests

* Create static test page

* Split up code block files

* Load static / streaming code block dynamically

* Extract highlighting from highlight manager

* Remove abort controller from static

* Add static fallback

* Split header

* Update docs

* Create soft-dragons-type.md

* Fix tests
2025-11-19 08:57:58 -08:00
streamdown-github-app[bot] a76c45052e Version Packages (#224)
Co-authored-by: streamdown-bot[bot] <streamdown-bot[bot]@users.noreply.github.com>
2025-11-16 09:23:56 -08:00
Hayden Bleasel 40fe4c61f0 For #222 2025-11-16 09:21:05 -08:00
Hayden Bleasel 19da935e94 Resolves #223 2025-11-16 09:07:30 -08:00
streamdown-github-app[bot] d4fb21f42b Version Packages (#181)
Co-authored-by: streamdown-bot[bot] <streamdown-bot[bot]@users.noreply.github.com>
2025-11-15 22:32:25 -08:00
Hayden Bleasel 7041497ff4 Resolves #189 2025-11-15 21:58:59 -08:00
Hayden Bleasel f7568e5002 Resolves #192 2025-11-15 21:40:08 -08:00
Hayden Bleasel f941fd6f53 Resolves #185 2025-11-15 21:20:02 -08:00
Hayden Bleasel ed0154a7fd Resolves #214 2025-11-15 21:02:03 -08:00
David Roeca 2ebd8868d6 fix: code block streaming performance (#205)
* Add tests for large code block

* Code block optimizations

* Update biome.jsonc

* Update good-wolves-greet.md

---------

Co-authored-by: Hayden Bleasel <hello@haydenbleasel.com>
2025-11-15 20:51:18 -08:00
Hayden Bleasel 75e9d401b9 Linting / Formatting / Documentation fixes (#220)
* Bump deps

* Update biome.jsonc

* Remove duplicate Biome config

* Run Ultracite

* Resolves #217

* For #198

* Update biome.jsonc

* For #198

* For #198

* For #198

* For #198

* Update node-attribute-removed.test.tsx

* Resolves #198

* Update README.md

* Add changeset files

* Create tidy-lemons-win.md
2025-11-15 20:23:36 -08:00
Francisco Moretti 5363a514c7 Stabilize Streamdown contexts (#207)
* make contexts stable

* Create cold-zoos-design.md

---------

Co-authored-by: Hayden Bleasel <hello@haydenbleasel.com>
2025-11-12 22:52:46 -08:00
Francisco Moretti f4c9c1e82a Add block-level customization hooks (#208)
* A few changes to make streamdown more flexible

* Create every-poems-chew.md

---------

Co-authored-by: Hayden Bleasel <hello@haydenbleasel.com>
2025-11-12 22:52:07 -08:00
Alex Page 5c4ad8bedb Fullscreen mermaid (#212)
* Fullscreen for Mermaid Diagrams

* changeset

* Implement reference counting for body scroll lock in fullscreen
2025-11-12 22:49:31 -08:00
Brendan Dash e17bf80015 fix: add overflow-hidden (#215)
* fix: add overflow-hidden

* chore: add changeset
2025-11-12 22:40:10 -08:00
Brendan Dash fbdec4dc6c fix: update border styling for code blocks (#216)
* fix: update border styling for code blocks

* chore: add changeset
2025-11-12 22:39:36 -08:00
2hu 8a3fc5acff feat: Dynamically load katex.min.css (#187) 2025-10-28 21:34:49 -07:00
2hu 171a824004 fix: base64 images (#188) 2025-10-28 21:33:21 -07:00