Commit Graph

112 Commits

Author SHA1 Message Date
Hayden Bleasel d3ed120364 Remend (#279)
* Initial extraction

* Split up files

* Misc cleanup

* Break apart test file

* Add vitest/coverage-v8

* Increase coverage to 99.63%

* Fix cognitive complexity issues

* Run Ultracite

* Delete parse-incomplete-markdown.ts

* Add postbuild script for use client directive

* Update README.md

* Add default export

* Update docs

* Rename package

* Create wicked-badgers-decide.md

* Fix remend tests

* Fix remend benchmarks

* Fix remaining Streamdown tests

* Update underscore-bug.test.tsx

* Update test.yml

* Update test.yml
2025-12-03 11:17:18 -08:00
Hayden Bleasel a954419dd5 Bump rehype harden (#269)
* Update rehype-harden

* Update props

* Update security.mdx

* Changeset, install deps
2025-11-28 15:31:44 -08:00
Ayhan Sipahi 3e219ba890 feat: enhance MermaidDemo with theme support for light/dark mode (#267)
* feat: enhance MermaidDemo with theme support for light/dark mode

* feat: add theme support and mount check to MermaidDemo component
2025-11-28 12:42:34 -08:00
Hayden Bleasel 995960b288 Resolves #182 2025-11-24 22:54:34 -08:00
Hayden Bleasel 2d26a35969 Fix ports 2025-11-24 22:15:35 -08:00
zhdzb 00ca9a9c36 Add: panZoom control option to support chart zoom functionality (#253) 2025-11-24 09:47:53 -08:00
Hayden Bleasel 2ffed8d0ca Update getting-started.mdx 2025-11-23 16:12:32 -08:00
Hayden Bleasel fb1940732e Update docs 2025-11-23 13:29:46 -08:00
Hayden Bleasel d1e0b3b56d Update package.json 2025-11-22 21:41:30 -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
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
Hayden Bleasel 62888665f8 Performance improvements, part 2 (#241)
* Add functional benchmarking suite

* Optimize regex performance

* Fix rendering issue with code blocks

* Fix bench commands

* Table optimizations

* Math Block Detection Caching

* Parse blocks optimizations

* More regex-to-loop optimizations

* Update layout.tsx

* Remove dependency on vfile

* Optimize string operations

* Create markdown.test.tsx

* Optimized cache key generation

* Fix display issue

* Add core Markdown parsing benchmarks

* Update section.tsx

* CSV / TSV escaping optimization

* More optimizations

* Run Ultracite

* Fix remaining lint issues
2025-11-21 17:45:53 -08:00
Hayden Bleasel 73e1b44f2f Remove urlTransform 2025-11-21 15:33:16 -08:00
Hayden Bleasel 83bca4ff13 Persist test model to localstorage 2025-11-21 15:30:51 -08:00
Hayden Bleasel 6e94a180ed Remove benchmarks 2025-11-21 15:13:09 -08:00
Hayden Bleasel 89d37d3d62 Update chat.tsx 2025-11-20 15:45:55 -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 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 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
Hayden Bleasel c7deb68364 Resolves #230 2025-11-19 08:55:15 -08:00
Hayden Bleasel 596b615c7c Update home-layout.tsx 2025-11-18 15:51:36 -08:00
Hayden Bleasel a2b2347321 Update search.tsx 2025-11-16 16:36:32 -08:00
Hayden Bleasel 63eb2f9505 Update search.tsx 2025-11-16 15:36:05 -08:00
Hayden Bleasel afde983111 Responsive fixes 2025-11-16 15:20:01 -08:00
Hayden Bleasel 9379b32b93 Update Geistdocs 2025-11-16 15:19:57 -08:00
Hayden Bleasel 31772c1dd4 Update video.tsx 2025-11-16 10:18:27 -08:00
Hayden Bleasel 40fe4c61f0 For #222 2025-11-16 09:21:05 -08:00
Tatsunori Uchino 94b08fb00e Fix documents and some test cases for CJK Friendly Emphasis (#222) 2025-11-16 09:08:54 -08:00
Hayden Bleasel 7041497ff4 Resolves #189 2025-11-15 21:58:59 -08:00
Hayden Bleasel 70ea91cfa0 Update test repo files 2025-11-15 21:57:00 -08:00
Hayden Bleasel 939ddc34e3 Add CJK support to website 2025-11-15 21:24:48 -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
Hayden Bleasel c492c4ce17 Update interactivity.mdx 2025-11-15 20:56:39 -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
Hayden Bleasel 44ae73eaaf Documentation (#219)
* Initial migration

* Update homepage

* Delete .source

* Fix gitignores

* Draft content

* Finish drafting content, migrate FAQ

* Update code-blocks.tsx

* Update route.ts

* Update next config

* Upgrade to Next.js 16, fix commands

* Update layout.tsx
2025-11-15 19:41:00 -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
dependabot[bot] 9633eda7c6 chore(deps): bump ai in the npm_and_yarn group across 1 directory (#210)
Bumps the npm_and_yarn group with 1 update in the / directory: [ai](https://github.com/vercel/ai).


Updates `ai` from 5.0.32 to 5.0.52
- [Release notes](https://github.com/vercel/ai/releases)
- [Changelog](https://github.com/vercel/ai/blob/main/CHANGELOG.md)
- [Commits](https://github.com/vercel/ai/compare/ai@5.0.32...ai@5.0.52)

---
updated-dependencies:
- dependency-name: ai
  dependency-version: 5.0.52
  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-11-12 22:40:54 -08:00
Hayden Bleasel 2ad0de1b98 Update gfm.tsx 2025-10-10 11:32:38 -07:00
Hayden Bleasel 3c780b4827 fix: footnotes are blocked by default (#179)
* Update rehype-harden

* Fix footnotes rendering

* Update footnotes.test.tsx

* Create tender-readers-shave.md
2025-10-10 11:04:50 -07:00
Hayden Bleasel 6c0672b1e9 Fix footnotes (#174)
* Fix footnotes in markdown parsing

* Create footnotes.test.tsx

* Create light-beers-peel.md

* Bump rehype-harden

* Update gfm.tsx

* Update parse-blocks.tsx

* Update pnpm-lock.yaml
2025-10-10 10:08:51 -07:00
Hayden Bleasel f5d6cd6668 Remove options props, make plugins fully customizable (#177)
* Remove options props, make plugins fully customizable

* Update docs

* Create puny-turkeys-press.md

* Remove harden options

* Make defaults easily overridable

* Simplify keys

* Update hardened.tsx

* Remove unused unit tests

* Add missing props
2025-10-10 09:39:40 -07:00
Hayden Bleasel d0444a38f2 Add isStreaming prop (#173)
* Add support for isAnimating

* Update props

* Update code-block.test.tsx

* Update useChat implementation code

* Create all-queens-follow.md
2025-10-09 18:26:51 -07:00
Hayden Bleasel 04f6f3aaba fix: hydration error while rendering image (#172)
* Extract images from paragraph tags

* Create image-hydration.test.tsx

* Create tangy-taxis-hammer.md

* Fix linting and formatting commands
2025-10-09 17:22:40 -07:00
Hayden Bleasel 7cd5048e21 Add support for remarkMathOptions and remarkGfmOptions props (#171)
* Add support for remarkMathOptions and remarkGfmOptions props

* Create remark-options.test.tsx

* Create odd-falcons-heal.md

* Add to website
2025-10-09 17:15:45 -07:00
Hayden Bleasel 6c6f507e21 Replace harden-react-markdown with rehype-harden (#170)
* replace harden-react-markdown with rehype-harden

* Improve docs

* Add hardenOptions prop to allow for full props

* Improve unit tests for hardenOptions

* Create cute-deer-cut.md

* Update hardened.tsx
2025-10-09 17:02:04 -07:00
2hu 5cdde417e4 docs: Update rehypePlugins default value in README (#163)
* docs: Update rehypePlugins default value in README

The default value for `rehypePlugins` in the README was updated to include `rehypeRaw`.

* docs: Update rehypePlugins default value in website
2025-10-09 14:07:11 -07:00
Hayden Bleasel 0ebf67db1d 1.3 changes (#145)
* Bump deps

* Run Ultracite

* Update code-block.tsx

* Update parse-blocks.tsx

* Create great-pants-trade.md
2025-09-15 20:35:31 -07:00
Machiel 73b17a4d0b showControls to show and hide copy/download buttons (#138)
* feat: add showControls prop to control copy/download button visibility.

* feat: Add documentation for `showControls`.

* feat: Add tests for `showControls`.

* feat: add showControls prop to control copy/download button visibility.

* Rename showControls to controls

* Fix conditional hooks

---------

Co-authored-by: Hayden Bleasel <hello@haydenbleasel.com>
2025-09-15 12:08:03 -07:00
Ayhan Sipahi d2edc9012d feat: add custom Mermaid configuration support (#122)
* feat: add custom Mermaid configuration support

* ci: add change set

* fix: optimize mermaid config comparison and initialization
2025-09-10 21:12:25 -07:00