Commit Graph

136 Commits

Author SHA1 Message Date
streamdown-github-app[bot] 520dd6d4a0 Version Packages (#66)
Co-authored-by: streamdown-bot[bot] <streamdown-bot[bot]@users.noreply.github.com>
streamdown@1.1.7
2025-09-02 09:44:30 -07:00
Hayden Bleasel 6e0f722d70 fix: rendering code blocks throws csp errors using vite build (#77)
* Update code-block.tsx

* Create eighty-regions-make.md
2025-09-02 09:14:10 -07:00
Taesu e7f040232e Redesign CodeBlock for improved UX (#69)
* feat: redesign CodeBlock component

* test: update CodeBlock tests for new structure

* chore: add changeset for CodeBlock redesign

* fix: move CodeBlock copy button to top-right

* fix: prevent state update on unmounted CodeBlock

* Update cold-mirrors-see.md

* Update code-block.tsx

---------

Co-authored-by: Hayden Bleasel <hello@haydenbleasel.com>
2025-09-02 08:29:09 -07:00
2hu 04b6e787d6 chore: sync README (#75)
* chore: sync README

* Update packages/streamdown/README.md

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

---------

Co-authored-by: Hayden Bleasel <hello@haydenbleasel.com>
Co-authored-by: vercel[bot] <35613825+vercel[bot]@users.noreply.github.com>
2025-09-02 08:23:16 -07:00
dependabot[bot] dfb85ce9f2 Bump the npm_and_yarn group across 2 directories with 1 update (#71)
Bumps the npm_and_yarn group with 1 update in the / directory: [next](https://github.com/vercel/next.js).
Bumps the npm_and_yarn group with 1 update in the /apps/website directory: [next](https://github.com/vercel/next.js).


Updates `next` from 15.4.6 to 15.4.7
- [Release notes](https://github.com/vercel/next.js/releases)
- [Changelog](https://github.com/vercel/next.js/blob/canary/release.js)
- [Commits](https://github.com/vercel/next.js/compare/v15.4.6...v15.4.7)

Updates `next` from 15.4.6 to 15.4.7
- [Release notes](https://github.com/vercel/next.js/releases)
- [Changelog](https://github.com/vercel/next.js/blob/canary/release.js)
- [Commits](https://github.com/vercel/next.js/compare/v15.4.6...v15.4.7)

---
updated-dependencies:
- dependency-name: next
  dependency-version: 15.4.7
  dependency-type: direct:production
  dependency-group: npm_and_yarn
- dependency-name: next
  dependency-version: 15.4.7
  dependency-type: direct:production
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-02 08:19:09 -07:00
Hayden Bleasel 6751cbba48 fix katex post-processing (#65) 2025-08-28 12:40:25 -07:00
Hayden Bleasel d77072b659 Update feature request template title 2025-08-28 12:05:50 -07:00
Hayden Bleasel 21701ff151 Update bug report template title 2025-08-28 12:05:38 -07:00
Hayden Bleasel e483a2e8b3 Resolves #17 2025-08-28 11:19:12 -07:00
streamdown-github-app[bot] 57ad869111 Version Packages (#63)
Co-authored-by: streamdown-bot[bot] <streamdown-bot[bot]@users.noreply.github.com>
streamdown@1.1.6
2025-08-28 11:05:50 -07:00
Hayden Bleasel 69fb1e0db4 fix single dollar sign text rendering as math (#64)
* Disable singleDollarTextMath

* Create wet-islands-slide.md

* Update tests

* Update mathematics.tsx

* Update wet-islands-slide.md

* Revert "Update wet-islands-slide.md"

This reverts commit 3e8f80aa63.
2025-08-28 11:04:34 -07:00
streamdown-github-app[bot] 593b021da0 Version Packages (#60)
Co-authored-by: streamdown-bot[bot] <streamdown-bot[bot]@users.noreply.github.com>
2025-08-28 10:16:45 -07:00
Hayden Bleasel e01669bd4e Add test app (#62)
* Scaffold test app

* Wire up AI SDK + Gateway

* Finish test app

* Resolves #53

* For #55

* Update config.json

* Create fuzzy-zoos-drive.md
2025-08-28 10:16:25 -07:00
2hu bf8c798501 docs: add defaultOrigin prop to README (#57)
* docs: add defaultOrigin prop to README

* Update README.md

* Create strong-apes-stop.md

---------

Co-authored-by: Hayden Bleasel <hello@haydenbleasel.com>
2025-08-28 09:15:07 -07:00
Hayden Bleasel 593e49eb92 fix multiple renders of the same mermaid diagram (#59)
* Improve stable ID

* Update mermaid.tsx

* Create social-bugs-doubt.md
2025-08-28 08:50:05 -07:00
Hayden Bleasel 0c9457b5ee Remove issue prefixes 2025-08-28 08:11:30 -07:00
Hayden Bleasel f106ec440d add faq to website (#56)
* Scaffold FAQ

* Resolves #4

* Update faq.tsx
2025-08-27 21:17:08 -07:00
streamdown-github-app[bot] 913351d200 Version Packages (#46)
Co-authored-by: streamdown-bot[bot] <streamdown-bot[bot]@users.noreply.github.com>
streamdown@1.1.4
2025-08-26 21:02:39 -07:00
Hayden Bleasel 5fbad80f2f fix bug with terminating lists on certain models (#49)
* fix asterisk list termination

* Create fancy-snails-march.md
2025-08-26 21:01:30 -07:00
Hayden Bleasel 13898aa987 feat: add data attributes to markdown components (#48)
* Add data-streamdown attributes to components

Added data-streamdown attributes to various rendered components for improved DOM identification and targeting. This enhances testability and integration with other tools that rely on custom data attributes.

* Create little-buses-lick.md

* Update verify-changesets.yml
2025-08-26 20:45:40 -07:00
Chenalejandro 390bbc73af temporary fix for error color in rehype katex (#44)
* fix

* Hardcode muted foreground color

* Update index.tsx

* Create metal-hotels-doubt.md

---------

Co-authored-by: Hayden Bleasel <hello@haydenbleasel.com>
2025-08-26 15:43:30 -07:00
Hayden Bleasel 9b5b56da5d Release based deploys (#47)
* Enable release-based deploys

* Create sour-grapes-admire.md
2025-08-26 15:30:22 -07:00
Hayden Bleasel f5f5e6f160 Update release.yml 2025-08-26 11:30:02 -07:00
17hz 5f4ed3d30c chore: remove package-lock.json (#42)
* chore: remove package-lock.json

* chore: ignore package-lock.json

* Create modern-groups-ring.md

---------

Co-authored-by: Hayden Bleasel <hello@haydenbleasel.com>
2025-08-26 10:20:04 -07:00
Hayden Bleasel 1a28ee8169 Update workflows (#39) 2025-08-26 10:18:27 -07:00
Hayden Bleasel 72b485dce6 Update package.json 2025-08-25 17:46:22 -07:00
Hayden Bleasel a03629c59a Manual version bump 2025-08-25 17:45:38 -07:00
Hayden Bleasel 71b96c27d5 Update release.yml 2025-08-25 17:43:55 -07:00
github-actions[bot] 929a8f3599 Version Packages (#36)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
streamdown@1.1.2
2025-08-25 17:41:09 -07:00
Hayden Bleasel 5ccfe24093 Resolves #5 2025-08-25 17:40:31 -07:00
Hayden Bleasel 7bd021f423 Update config.json 2025-08-25 17:34:35 -07:00
Hayden Bleasel f834892754 fix: codeblock dark mode and background (#40)
* Add theme provider

* Update footer.tsx

* Update code blocks

* Create yellow-webs-follow.md

* Accept two shiki themes

* Update index.tsx

* Misc fixes
2025-08-25 17:32:34 -07:00
Hayden Bleasel 045907f841 fix: handleincompletesingleunderscoreitalic is not accounting for the usage inside math equations (#38)
* Fix underscores in math equations

* Create cuddly-goats-warn.md
2025-08-25 16:30:23 -07:00
Hayden Bleasel dc9ab5fffb Fix unit tests (#37)
* Fix failing unit tests

* Add test suite to PR and Release workflows

* Create short-swans-rush.md
2025-08-25 16:29:57 -07:00
Hayden Bleasel 01e5eb091d Community + Publishing Workflow (#35)
* Scaffold changesets

* Copy AI SDK config

* Update config

* Create tender-toes-study.md

* Create CONTRIBUTING.md

* Create SECURITY.md

* Create CODE_OF_CONDUCT.md

* Create issue and PR templates
2025-08-25 14:59:18 -07:00
Hayden Bleasel 6093353163 Update package.json 2025-08-25 12:24:51 -07:00
Hayden Bleasel 5ce9e33e20 Suppress error rendering 2025-08-25 12:24:28 -07:00
Hayden Bleasel 80e5330176 Update README.md 2025-08-25 11:56:34 -07:00
Hayden Bleasel ae0881caff Automatic diagrams (#34)
* Update demo copy

* Extract Code component

* Merge Code components

* Update mermaid.tsx

* Update mermaid.tsx

* Intelligently render "cached" valid Mermaid diagram

* Update components.tsx

* Fix infinite loop

* Update package.json
2025-08-25 11:41:57 -07:00
Francisco Moretti 9fc596354c fix(Response): language available on code element, not pre (#16)
* fix(Response): language available on code element, not pre

Infer code language from the className on the code element (not from pre).

The className prop on the component is a string. The node.properties.classname is an array of class tokens. We use className with a regex to extract the language.

Default language plaintext. Happy to change this if JS is a better default.

* fix div inside pre

* fix(components): update regex for language extraction

Changed the regex in components.tsx to allow for non-whitespace characters in language class names, improving language detection for code blocks.

---------

Co-authored-by: Hayden Bleasel <hello@haydenbleasel.com>
2025-08-25 11:03:58 -07:00
Ayhan Sipahi d528e25ac1 feat: Add Interactive Mermaid Diagram Support with Manual Rendering (#18)
* feat: add Mermaid diagram support to Streamdown

- Add Mermaid package dependency
- Create Mermaid component with error handling
- Integrate Mermaid support in markdown components
- Add Mermaid demo to website
- Update README with Mermaid examples
- Add comprehensive tests for Mermaid component

* feat(mermaıd): lazy load mermaid

* feat: add interactive Mermaid diagram support with manual render buttons

* perf: optimize Mermaid initialization to prevent config conflicts

* fix: extract pre component to resolve React Hooks Rules violation

* fix: add error handling and unique ID generation

* fix: conditionally render Mermaid button only for Mermaid code blocks
2025-08-25 10:58:33 -07:00
David Khourshid ead476e0f8 Update README.md (#28)
Adds the step to build the streamdown package first, since otherwise it won't find the module in the workspace.
2025-08-25 10:56:25 -07:00
Arnav K be33778983 chore: update lucide-react dependency to fix virus error w/ vite (#27) 2025-08-25 10:55:13 -07:00
2hu 2f486418be docs: add shikiTheme prop to README (#25) 2025-08-25 10:54:10 -07:00
Francisco Moretti d483d0d78c fix(streamdown): add displayName for Block (eslint react/display-name) (#15) 2025-08-25 10:53:06 -07:00
Steven a048fcd351 Add homepage and repository fields to package.json (#20) 2025-08-22 08:21:17 -07:00
Hayden Bleasel dff0eefa51 Version bump 2025-08-21 09:54:42 -07:00
Hayden Bleasel b932431e6a Update props 2025-08-21 09:54:37 -07:00
Yella Yohan Reddy a4647ccd8e Add Vercel header link and include dist in build outputs (#10)
* fix: add Vercel link to header

* turbo: include dist/** in build outputs

* fix: replace Link with anchor for external Vercel link
2025-08-21 09:52:43 -07:00
toyamarinyon 7325f759b6 Add Custom Shiki Theme Support via React Context (#8)
* Add Shiki theme support to Streamdown

* Add re-render check for shikiTheme in Streamdown component
2025-08-21 09:50:34 -07:00