Commit Graph

237 Commits

Author SHA1 Message Date
Hayden Bleasel 0dff8de003 Build fixes 2026-03-04 10:39:59 -08:00
Rich Haines 9d78590b2d Make sitemap.md static via generateStaticParams (#432) 2026-03-04 10:34:00 -08:00
Hayden Bleasel 2cf559d500 Resolves #191 2026-03-03 18:10:56 -08:00
Hayden Bleasel 781178b99c Resolves #272 2026-03-03 17:05:57 -08:00
Hayden Bleasel 71184cce30 Resolves #329 2026-03-03 16:58:12 -08:00
Hayden Bleasel ad21f7d69e Resolves #317 2026-03-03 16:51:44 -08:00
Udit Kumar fb76275ef4 Feat/table fullscreen (#390)
* feat(streamdown): add fullscreen support for tables

* test(streamdown): add fullscreen behavior tests

* docs: document fullscreen styling and usage

* add: changeset

* fix: prevent unintended fullscreen close

* fix: resolve shiki theme style mapping

---------

Co-authored-by: Hayden Bleasel <hello@haydenbleasel.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-03 16:16:10 -08:00
Hayden Bleasel ff390bb114 Update docs 2026-03-03 15:43:20 -08:00
Hayden Bleasel d5af95b18a Run linter/formatter 2026-03-03 15:38:08 -08:00
Hayden Bleasel 80bcc5f29d Improve table docs 2026-03-03 13:19:49 -08:00
Hayden Bleasel dbcfa12857 Update docs 2026-03-03 13:18:50 -08:00
Lucas Estevão 27c7b037d0 feat: export table action components and utilities (#421)
Export TableCopyDropdown, TableDownloadButton, TableDownloadDropdown,
and table utility functions (extractTableDataFromElement, tableDataToCSV,
tableDataToTSV, tableDataToMarkdown, escapeMarkdownTableCell, TableData)
from the main entry point, enabling custom table overrides to preserve
copy/download interactivity.

Also fixes a type error in table components where `size` prop was passed
to SVG icons that only accept standard SVG attributes (width/height).

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-03 13:17:26 -08:00
Hayden Bleasel 7b404379d9 Fix plugin docs 2026-03-03 13:09:00 -08:00
Aradhya C P 5edff75c13 docs: add code, cjk, math, and mermaid to @source (#430)
* docs: update Tailwind CSS setup instructions to include additional Streamdown modules in README.md

* docs: update FAQ to include additional Streamdown module sources in globals.css

* docs: update Tailwind CSS configuration to include additional Streamdown module sources in getting-started.mdx

* docs: update migration guide to include additional Streamdown module sources in globals.css

* docs: update Tailwind CSS configuration in SKILL.md to include additional Streamdown module sources

* chore: add changeset for @source documentation updates

* docs: update README to include optional Streamdown plugin installation instructions

* docs: update FAQ to include instructions for optional Streamdown plugins in globals.css

* docs: update Tailwind CSS configuration in getting-started.mdx to clarify optional plugin integration

* docs: add Tailwind CSS configuration instructions for @streamdown/code plugin

* docs: update migration guide to include plugin source path instructions for Tailwind CSS

* docs: add Tailwind CSS integration instructions for @streamdown/cjk plugin

* docs: add Tailwind CSS integration instructions for @streamdown/math plugin

* docs: add Tailwind CSS integration instructions for @streamdown/mermaid plugin

* docs: update the changeset

* docs: update Tailwind CSS configuration instructions for clarity

* docs: update links for plugin documentation
2026-03-03 13:07:22 -08:00
Rich Haines 559274fe29 Add sitemap.md route for LLM-friendly documentation indexing (#429) 2026-03-03 10:16:05 -08:00
Hayden Bleasel e4c37b73c0 Create migration guide 2026-02-25 11:58:57 -08:00
Hayden Bleasel 2d929d021e Update website logos 2026-02-25 09:47:47 -08:00
Hayden Bleasel 89b44cd106 Fix double overflow issue on homepage 2026-02-19 10:35:39 -08:00
Hayden Bleasel 1102f1855e Fix all Biome lint and formatting errors
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-18 20:57:01 -08:00
Hayden Bleasel 847132d73c Remove ts-router-chat-test 2026-02-18 20:47:58 -08:00
Hayden Bleasel 93a79cc06b Resolves #270 2026-02-18 19:08:39 -08:00
Hayden Bleasel eb4099d1b1 Update templates.tsx 2026-02-18 19:04:29 -08:00
Hayden Bleasel e336d9848e Link out to templates 2026-02-18 16:14:00 -08:00
dependabot[bot] 40ff972f40 Bump the npm_and_yarn group across 1 directory with 4 updates (#405)
Bumps the npm_and_yarn group with 1 update in the / directory: [@modelcontextprotocol/sdk](https://github.com/modelcontextprotocol/typescript-sdk).


Updates `@modelcontextprotocol/sdk` from 1.25.2 to 1.26.0
- [Release notes](https://github.com/modelcontextprotocol/typescript-sdk/releases)
- [Commits](https://github.com/modelcontextprotocol/typescript-sdk/compare/v1.25.2...v1.26.0)

Updates `ajv` from 8.17.1 to 8.18.0
- [Release notes](https://github.com/ajv-validator/ajv/releases)
- [Commits](https://github.com/ajv-validator/ajv/compare/v8.17.1...v8.18.0)

Updates `hono` from 4.11.4 to 4.11.10
- [Release notes](https://github.com/honojs/hono/releases)
- [Commits](https://github.com/honojs/hono/compare/v4.11.4...v4.11.10)

Updates `qs` from 6.14.1 to 6.15.0
- [Changelog](https://github.com/ljharb/qs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ljharb/qs/compare/v6.14.1...v6.15.0)

---
updated-dependencies:
- dependency-name: "@modelcontextprotocol/sdk"
  dependency-version: 1.26.0
  dependency-type: direct:production
  dependency-group: npm_and_yarn
- dependency-name: ajv
  dependency-version: 8.18.0
  dependency-type: indirect
  dependency-group: npm_and_yarn
- dependency-name: hono
  dependency-version: 4.11.10
  dependency-type: indirect
  dependency-group: npm_and_yarn
- dependency-name: qs
  dependency-version: 6.15.0
  dependency-type: indirect
  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>
2026-02-18 14:26:37 -08:00
Hayden Bleasel 55da9dacfc Draft new Geistdocs homepage 2026-02-18 13:15:46 -08:00
Hayden Bleasel 6363be1efe Implement Conversation component 2026-02-18 10:39:49 -08:00
Hayden Bleasel ecaad72cd3 Make playground Streamdown customizable 2026-02-18 10:32:26 -08:00
Hayden Bleasel 69761f2ab7 Update meta.json 2026-02-18 10:20:48 -08:00
Hayden Bleasel 1cf1dd842f Add redirects 2026-02-18 10:20:45 -08:00
Hayden Bleasel d79ebb7227 Merge Mermaid pages 2026-02-18 10:20:38 -08:00
Hayden Bleasel 7bfc313c43 Merge Math pages 2026-02-18 10:18:55 -08:00
Hayden Bleasel 5eba3f120a Merge CJK pages 2026-02-18 10:17:51 -08:00
Hayden Bleasel 883d6c0183 Destructure plugin pages 2026-02-18 10:12:18 -08:00
Hayden Bleasel dc1f61552c Update playground-editor.tsx 2026-02-18 10:10:03 -08:00
Hayden Bleasel bc29c15443 Update Geistdocs 2026-02-18 10:08:44 -08:00
Hayden Bleasel 55260d255d Fix homepage usage code block 2026-02-18 09:50:33 -08:00
Hayden Bleasel deae6aa4cf Cleanup Playground 2026-02-18 09:47:36 -08:00
Hayden Bleasel 604953075e Update docs 2026-02-18 09:41:14 -08:00
Hayden Bleasel 4d0901109d Update code-block.tsx 2026-02-18 09:40:57 -08:00
Hayden Bleasel cfd16ea2f7 Update docs 2026-02-18 09:13:57 -08:00
Tim Neutkens bacd11bee8 Add /playground to website (#404) 2026-02-18 08:57:19 -08:00
PaulSenon 15645da72e Feat/code block cls lower lazy boundary (#392)
* feat: Improve code block visual stability by moving lazy highlight boundary

* style: update contributing linter rules and fixed missed linter issues

* revert superfluous changes to CONTRIBUTING.md and geistdocs.tsx

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

---------

Co-authored-by: Hayden Bleasel <hello@haydenbleasel.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 16:36:48 -08:00
Waseem 3657e42bcc feat: add useIsBlockIncomplete hook for detecting incomplete streaming blocks (#381)
* feat: add useIsBlockIncomplete hook for detecting incomplete streaming blocks

Custom components can now detect when the block they're rendering is still
being streamed (incomplete). This is useful for showing loading states in
code blocks during streaming.

- Add BlockIncompleteContext and useIsBlockIncomplete hook
- Add hasIncompleteCodeFence utility to detect unclosed code fences
- Calculate isIncomplete state per block during render
- Default CodeComponent uses the hook to set data-incomplete attribute
- Add comprehensive tests for the new functionality

* docs: add useIsBlockIncomplete documentation

- Add "Streaming State" section to components.mdx explaining the hook
- Add "Avoid Continuous Re-rendering" section to mermaid.mdx with example

* fix: support tilde code fences in hasIncompleteCodeFence

Adds support for detecting incomplete ~~~ code fences in addition to
backtick fences, per CommonMark/GFM spec.

* fix: address PR review — line-based fence detection, rename hook/context

- rewrite hasIncompleteCodeFence to walk line-by-line per CommonMark spec
  - fixes 6+ backtick fences being miscounted
  - fixes false positives from inline backticks in prose
  - respects fence character matching and length requirements
- rename block-position-context.ts → block-incomplete-context.ts
- rename useIsBlockIncomplete → useIsCodeFenceIncomplete
- add tests for edge cases (long fences, inline backticks, indentation)

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

---------

Co-authored-by: Hayden Bleasel <hello@haydenbleasel.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 16:14:57 -08:00
dependabot[bot] eb4e2a6564 Bump next in the npm_and_yarn group across 1 directory (#372)
Bumps the npm_and_yarn group with 1 update in the / directory: [next](https://github.com/vercel/next.js).


Updates `next` from 16.1.3 to 16.1.5
- [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/v16.1.3...v16.1.5)

---
updated-dependencies:
- dependency-name: next
  dependency-version: 16.1.5
  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>
2026-02-17 16:06:36 -08:00
zhdzb 7f9127b843 Add normalizeHtmlIndentation prop to prevent indented HTML tags from being treated as code blocks (#264) 2026-02-17 16:04:51 -08:00
Dmitrii 5c99dfe48b docs: fix incorrect line-break behavior description in GFM docs (#399)
* docs: fix incorrect line-break behavior description in GFM docs

The GFM documentation incorrectly stated that single newlines are
preserved as visible line breaks. In reality, remark-gfm (like
standard Markdown) treats single newlines as soft breaks, rendering
them as spaces.

Updated the Line Breaks section to:
- Correctly explain soft break behavior
- Document hard break syntax (trailing spaces and backslash)
- Show how to add remark-breaks plugin for automatic line breaks

Fixes #388

* fix: use PluggableList array for remarkPlugins example

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

---------

Co-authored-by: Shurik <shurik@openclaw.ai>
Co-authored-by: vercel[bot] <vercel[bot]@users.noreply.github.com>
2026-02-17 15:49:23 -08:00
Dmitrii 9118cc001b docs: clarify that custom components replace default styles (#398)
Document that custom components fully replace default implementations
including their built-in Tailwind classes. The className prop only
contains classes from the Markdown AST, not Streamdown's default styles.

Add a warning callout and a before/after example showing how to
preserve default h2 styles when overriding.

Fixes #394

Co-authored-by: Shurik <shurik@openclaw.ai>
2026-02-17 15:47:07 -08:00
Hayden Bleasel 13fc8248a4 Pull upstream changes 2026-02-17 09:07:33 -08:00
Hayden Bleasel eeb824f9c8 Update page.tsx 2026-02-12 11:51:35 -08:00
Hayden Bleasel 5feae8ce49 Update page.tsx 2026-02-12 11:38:01 -08:00