Open CNSeniorious000 opened 1 month ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
endless-chat | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Oct 12, 2024 6:41am |
free-chat | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Oct 12, 2024 6:41am |
此拉取请求实现了重大更改,以改进 Markdown 渲染和代码块功能。主要更改包括从 markdown-it
切换到 solid-markdown
进行渲染,增强代码块样式和复制功能,并更新依赖项。
sequenceDiagram
participant C as Component
participant SM as SolidMarkdown
participant RP as RemarkPlugins
participant RH as RehypePlugins
participant CB as CodeBlock
C->>SM: Render markdown
SM->>RP: Process with remark plugins
SM->>RH: Process with rehype plugins
SM->>CB: Render code blocks
CB-->>SM: Return rendered code
SM-->>C: Return rendered markdown
更改 | 详情 | 文件 |
---|---|---|
用 solid-markdown 替换 markdown-it 进行渲染 |
|
pnpm-lock.yaml src/components/MessageItem.tsx src/components/CodeBlock.tsx |
改进代码块样式和功能 |
|
src/components/CodeBlock.tsx src/message.css uno.config.ts |
更新 API 模型和依赖项 |
|
src/utils/misc.ts pnpm-lock.yaml |
Name | Link |
---|---|
Latest commit | |
Latest deploy log | https://app.netlify.com/sites/promplate-demo/deploys/670be3a15c531f920a288d3e |
Deploy Preview | https://deploy-preview-73--promplate-demo.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Still,
Uncaught (in promise) TypeError: Cannot set properties of undefined (setting 'inTable')
Created a PR to the upstream: https://github.com/andi23rosca/solid-markdown/pull/36
Use
solid-markdown
to parse and render markdown without frequently updating DOMSourcery 的总结
用
solid-markdown
替换现有的 markdown 渲染方法,以支持部分 markdown 渲染,并通过最小化 DOM 更新来提高性能。重构代码以使用带有remark
和rehype
插件的unified
,并更新 API 模型版本。新功能:
solid-markdown
库渲染部分 markdown 的支持,增强 markdown 渲染的灵活性。增强:
solid-markdown
进行 markdown 解析和渲染,减少频繁的 DOM 更新以提高性能。remark
和rehype
插件的unified
,以提高可扩展性和可维护性。杂务:
Original summary in English
## Summary by Sourcery Replace the existing markdown rendering approach with `solid-markdown` to support partial markdown rendering and improve performance by minimizing DOM updates. Refactor the code to use `unified` with `remark` and `rehype` plugins, and update the API model version. New Features: - Introduce support for rendering partial markdown using the `solid-markdown` library, enhancing the flexibility of markdown rendering. Enhancements: - Improve performance by reducing frequent DOM updates through the use of `solid-markdown` for markdown parsing and rendering. - Refactor the markdown rendering logic to use `unified` with `remark` and `rehype` plugins for better extensibility and maintainability. Chores: - Update the model used in API requests from 'llama3-70b-8192' to 'llama-3.2-90b-text-preview'.