Commit Graph

647 Commits

Author SHA1 Message Date
Farnabaz e30219d2db docs: document codeBlockMaxHeight and tableMaxHeight
Cover defaults, disable values, and streaming auto-scroll pin behavior
in configuration, code blocks, and GFM docs.
2026-08-19 21:04:23 +02:00
Farnabaz 168f626fc9 lint: fix 2026-08-19 20:58:08 +02:00
Farnabaz 5f6eb42436 fix: extract shared pinned-scroll hook for code blocks and tables
Share bottom-pin scroll behavior across code blocks and tables, keep
height props in the memo compare, and expand table scroll coverage.
2026-08-19 20:37:53 +02:00
Farnabaz c482253e6c Merge remote-tracking branch 'origin/main' into feature/scrollable-code-blocks-tables 2026-08-19 20:22:37 +02:00
Farnabaz 49bd1434b9 fix: concurrent animation across streaming blocks (#581)
Co-authored-by: Dmitrii Troitskii <jsleitor@gmail.com>
Co-authored-by: Isaac Wasserman <isaacrwasserman@gmail.com>
Co-authored-by: aradhyacp <cparadhya@proton.me>
2026-08-19 19:59:39 +02:00
Farnabaz c7042eed78 Merge branch 'main' into feature/scrollable-code-blocks-tables 2026-08-19 19:12:49 +02:00
Sjoerd Andringa a99d675691 fix(remend): drop lookbehind from single-tilde pattern for Safari < 16.3 (#576)
Co-authored-by: Sjoerd Andringa <sjoerd@jobport.nl>
Co-authored-by: Farnabaz <farnabaz@gmail.com>
2026-08-19 18:04:57 +02:00
Farnabaz 6a9115149f fix(ci): allow numbers in changeset filenames (#587) 2026-08-19 18:01:30 +02:00
Rich Haines d39049d173 chore(docs): update Geistdocs to 1.20.4 (#586) 2026-08-19 16:58:24 +02:00
omribz156 9f9640969c fix(remend): handle intraword asterisk closers (#582)
Co-authored-by: Farnabaz <farnabaz@gmail.com>
2026-08-19 13:45:11 +02:00
Dmitrii b25dbdbc42 fix(custom-tags): render Markdown inside custom tags with multiline content (#484)
Co-authored-by: Farnabaz <farnabaz@gmail.com>
2026-08-19 13:02:07 +02:00
omribz156 fb5d7b969c fix(mermaid): serialize svg downloads (#526)
Co-authored-by: Omri SirComp <omribz156@gmail.com>
Co-authored-by: Farnabaz <farnabaz@gmail.com>
2026-08-14 17:04:54 +02:00
Shayan 7e824007a3 fix: detect static text direction per block (#569)
Co-authored-by: Shayan SalehiRad <youtforsh@gmail.com>
Co-authored-by: Farnabaz <farnabaz@gmail.com>
2026-08-14 15:59:00 +02:00
Aradhya C P f46cd3cfd9 fix(table): preserve line breaks when copy/download table (#554)
Co-authored-by: Farnabaz <farnabaz@gmail.com>
2026-08-14 15:11:39 +02:00
Dmitrii f7d1fb5080 fix(table): add table-wrapper to fullscreen portal so copy/download work (#470)
Co-authored-by: Farnabaz <farnabaz@gmail.com>
2026-08-13 17:43:44 +02:00
Danylo Kachur e7bdf57b95 fix(mermaid): make controls reachable in the fullscreen view (#552)
Co-authored-by: Farnabaz <farnabaz@gmail.com>
2026-08-13 17:15:47 +02:00
Aradhya C P b2500388a3 fix(a11y): add aria-labels for Mermaid toolbar buttons (#488)
Co-authored-by: Farnabaz <farnabaz@gmail.com>
2026-08-13 16:38:20 +02:00
Dmitrii 2733922599 fix(mermaid): add aria-hidden to decorative SVG icons(#487) 2026-08-13 16:19:26 +02:00
Simon f0a726bb54 fix(icons): add aria-hidden to decorative SVG icons (#486)
Co-authored-by: Simon <lvtianpeng93@gmail.com>
Co-authored-by: Farnabaz <farnabaz@gmail.com>
2026-08-13 16:18:34 +02:00
Aradhya C P d8937596e4 fix(mermaid): fullscreen overlay accessibility and add stable data-streamdown attribute (#507) 2026-08-13 15:46:05 +02:00
Rich Haines 7163a2d5e9 docs: update Geistdocs to 1.19.6 (#572)
Co-authored-by: Farnabaz <farnabaz@gmail.com>
2026-08-13 15:36:51 +02:00
Farnabaz eb9867ff30 fix(ci): use github-api commit mode for signed releases (#579) 2026-08-13 15:11:26 +02:00
Farnabaz ef75b7c499 fix(ci): use GITHUB_TOKEN for release workflow (#578) 2026-08-13 14:55:26 +02:00
Dmitrii 8d36719ad8 fix(deps): remove mermaid as hard runtime dependency (#502)
Co-authored-by: Farnabaz <farnabaz@gmail.com>
2026-08-13 13:52:34 +02:00
五茶 8093f2ae18 fix(remend): recognize LaTeX paren and bracket math (#523) 2026-08-13 12:39:56 +02:00
Dmitrii a1a714257f feat: add image control options (disable download/hover on images) (#514)
Co-authored-by: Farnabaz <farnabaz@gmail.com>
2026-08-13 11:15:22 +02:00
Aradhya C P fe38e75ed9 fix: improve accessibility for code block control buttons (#560)
Co-authored-by: Farnabaz <farnabaz@gmail.com>
2026-08-12 17:46:14 +02:00
Qiuhang817385 9e571dff91 fix(streamdown): correct CSS bracket syntax in code-block bg classes (#518)
Co-authored-by: Qiuhang817385 <826266129@QQ.COM>
Co-authored-by: Farnabaz <farnabaz@gmail.com>
2026-08-12 16:41:07 +02:00
Kushal b0f5a58f36 fix: replace dead via.placeholder.com URL (#513) 2026-08-12 15:32:07 +02:00
Dmitrii ea02609764 fix: prioritize shikiTheme prop over code plugin default theme (#497) 2026-08-12 15:13:54 +02:00
HelloYou 26a84401e3 fix(sanitize): prevent double user-content- prefix on footnote ids (#563)
Co-authored-by: HelloYou <helloyou2012@gmail.com>
Co-authored-by: Farnabaz <farnabaz@gmail.com>
2026-08-12 14:47:40 +02:00
Anton Osipov 8fffa9d640 fix: render link safety modal in a portal to avoid <p> hydration error (#529)
Co-authored-by: Anton Osipov <170366728+osipov-anton@users.noreply.github.com>
2026-08-12 14:28:21 +02:00
Aradhya C P dc3f1d2c27 fix: prevent code block line collapse when lineNumbers is disabled (#533)
Co-authored-by: Farnabaz <farnabaz@gmail.com>
2026-08-12 14:07:27 +02:00
Ghoshan Jaganathamani 9813dd646b fix(types): stop requiring shiki for type-checking streamdown (#565)
Co-authored-by: Ghoshan Jaganathamani <175198591+ghostyfreak@users.noreply.github.com>
2026-08-12 13:31:34 +02:00
Aradhya C P 8f02c0967a fix: restore table copy and download actions in fullscreen mode (#568)
Co-authored-by: Farnabaz <farnabaz@gmail.com>
2026-08-12 12:05:27 +02:00
Farnabaz c31ae7f0a3 fix(ci): drop GitHub App token from verify-changesets (#575) 2026-08-12 11:37:16 +02:00
Rich Haines e5deed330a Migrate docs site to package-based Geistdocs (#537)
* Migrate docs site to package-based Geistdocs architecture

Replace the vendored Geistdocs template in apps/website with the
published @vercel/geistdocs package. The package now owns the shared
runtime (layout, docs renderer, search, Ask AI chat, markdown routes,
proxy, and MDX components) while the app keeps thin user-owned
adapters.

- Add @vercel/geistdocs 1.7.2 and bump Next.js to 16.2.6 (exact peer)
- Delete ~50 vendored runtime files (components/geistdocs, hooks,
  custom chat UI, search/chat route implementations, feedback action)
- Replace routes with package factories: createDocsPage,
  createChatRoute, createSearchRoute, createLlmsRoute,
  createDocsMarkdownRoute, createSitemapMarkdownRoute, createProxy
- AI chat now uses the package-owned Ask AI (AI SDK v6 via the package)
- Adopt the package geistdocs.css theme with @source entries for the
  geistdocs and streamdown dists; add a compat token layer in
  global.css for user-owned components
- Add new /agents.md and /.well-known/mcp.json agent-readiness routes
  with Streamdown agent metadata in geistdocs.tsx
- Keep the landing page, playground, KaTeX/Mermaid MDX pipeline,
  redirects, and workspace streamdown live demos intact
- Prune dependencies now owned by the package (dexie, @orama/tokenizers,
  ai, @ai-sdk/react, etc.) and unused shadcn components

* Polish homepage and migrate UI components to @vercel/geistdocs

- Homepage background set to bg-background-200 (incl. body/overscroll)
- Disable smooth-scroll animation on page navigation
- Replace hero install button with For humans / For agents CommandPrompt
- Remove hero "Read the docs" button
- Remove "Powering AI experiences for" logo strip and assets
- Remove homepage section gridlines/dividers
- Homepage titles at font-weight 450
- Navbar border hidden at top, revealed on scroll (homepage only)
- "Get started" code block uses Geist Shiki theme at 13px
- Feature links restyled black + underlined (was blue)
- Migrate Button/Badge/Input/Textarea/Popover to @vercel/geistdocs; delete local copies
- Remove dead installer + input-group components

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: christopherkindl <53372002+christopherkindl@users.noreply.github.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-13 13:15:57 +02:00
Steven fa4604b622 chore: add minimumReleaseAge: 2880 (#528)
* Switch CI to pinned pnpm

Co-authored-by: Steven <styfle@users.noreply.github.com>

* Use pnpm action setup in CI

Co-authored-by: Steven <styfle@users.noreply.github.com>

* Revert packageManger

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2026-05-21 20:01:36 +02:00
Rich Haines 5f6475139a Send siteId as label on feedback GitHub issues (#491) 2026-04-01 14:34:08 +02:00
Dmitrii Troitskii 541d90688c feat: add scrollable code blocks and tables with auto-scroll during streaming 2026-03-18 22:40:07 +00:00
streamdown-github-app[bot] 15ba1aee86 Version Packages (#457)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@streamdown/cjk@1.0.3 @streamdown/code@1.1.1 remend@1.3.0 streamdown@2.5.0
2026-03-17 10:32:35 -07:00
Hayden Bleasel 38aae89ee3 Update broken-markdown-variants.test.ts 2026-03-17 09:06:16 -07:00
Hayden Bleasel d566c819d4 Create broken-markdown-variants.test.ts 2026-03-16 14:31:18 -07:00
Sora Morimoto b752b44a80 fix(streamdown): move mermaid from devDependencies to dependencies (#466)
The published type declarations (dist/index.d.ts) import MermaidConfig
from the mermaid package, making it part of the public API. Having it as
a devDependency meant consumers could end up resolving different mermaid
versions for streamdown and @streamdown/mermaid, causing type errors due
to incompatible MermaidConfig types.
2026-03-16 10:39:55 -07:00
仓鼠 d6263515f4 fix(playground-editor): add full height class to ConversationContent (#465)
* fix(playground-editor): add full height class to ConversationContent

* docs: add changeset

* fix(playground-editor): update Textarea class for consistent field sizing

* Delete .changeset/fix-playground-safari-textarea.md

---------

Co-authored-by: Hayden Bleasel <hello@haydenbleasel.com>
2026-03-16 10:39:24 -07:00
Hayden Bleasel 90a7b58ca8 Run fix 2026-03-12 17:35:48 -07:00
ziyadev 9e6f991f0d fix(streamdown): increase dropdown z-index (#463)
* fix(streamdown): increase dropdown z-index

* chore: rm duplicate class

* chore: increase dropdown z-index

* add patch changeset for dropdown z-index fix

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Hayden Bleasel <hello@haydenbleasel.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-12 17:34:25 -07:00
Aradhya C P 2a83c97c1f Fix: Fix streaming of custom markdown input in PlaygroundEditor (#462)
* Implement markdown output state for streaming simulation

* Update streaming simulation to use markdownOutput conditionally
2026-03-12 17:32:34 -07:00
Dmitrii d6666b6de3 feat: add lineNumbers prop to disable line numbers in code blocks (#460)
* feat: add lineNumbers prop to disable line numbers in code blocks

* docs: add lineNumbers prop and noLineNumbers meta string

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Dmitrii Troitskii <jsleitor@gmail.com>
Co-authored-by: Hayden Bleasel <hello@haydenbleasel.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-12 17:31:46 -07:00
Dmitrii 6a79e04690 fix(streamdown): preserve double newlines in literalTagContent tags (#459)
* fix(streamdown): preserve double newlines in literalTagContent tags

When a tag is in literalTagContent mode, double newlines (\n\n) inside
the tag content were incorrectly treated as paragraph separators by the
markdown parser, causing the content after the first blank line to be
excluded from the tag's children.

Fix: in preprocessLiteralTagContent, after escaping markdown metacharacters,
replace \n\n with &#10;&#10; HTML entities. This prevents the markdown
parser from interpreting blank lines as paragraph breaks while still
preserving the newline characters (rehype-raw decodes &#10; back to \n).

Fixes vercel/streamdown#456

* Run pnpm fix to resolve formatting issues

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Fix pre-existing formatting issue in code-block/index.tsx

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Fix lint and formatting issues

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Dmitrii Troitskii <jsleitor@gmail.com>
Co-authored-by: Hayden Bleasel <hello@haydenbleasel.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11 15:41:03 -07:00