Enable GFM (GitHub Flavored Markdown) support in markdown parser (#2353)
## Summary
- Add `remarkGfm` plugin to `VanillaMarkdownParser` and
`DyadMarkdownParser` components
- Enables proper rendering of GitHub Flavored Markdown features
including tables, strikethrough, autolinks, and task lists
## Test plan
- Verify tables render correctly in chat messages
- Verify strikethrough text (~~text~~) renders with strikethrough
styling
- Verify task lists (- [ ] and - [x]) render as checkboxes
- Verify autolinks are properly converted to clickable links
🤖 Generated with [Claude Code](https://claude.com/claude-code)
<!-- devin-review-badge-begin -->
---
<a href="https://app.devin.ai/review/dyad-sh/dyad/pull/2353">
<picture>
<source media="(prefers-color-scheme: dark)"
srcset="https://static.devin.ai/assets/gh-open-in-devin-review-dark.svg?v=1">
<img
src="https://static.devin.ai/assets/gh-open-in-devin-review-light.svg?v=1"
alt="Open with Devin">
</picture>
</a>
<!-- devin-review-badge-end -->
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Enabled GitHub Flavored Markdown in chat markdown parsing to correctly
render tables, strikethrough, autolinks, and task lists. Adds remarkGfm
to VanillaMarkdownParser and DyadMarkdownParser; addresses Linear issue
2297.
<sup>Written for commit f3eb069a860e6bf95f76a9bcc97b44d89fe07da7.
Summary will update on new commits.</sup>
<!-- End of auto-generated description by cubic. -->
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Adds GitHub Flavored Markdown support to chat markdown rendering.
>
> - Import `remark-gfm` and pass via `remarkPlugins` to `ReactMarkdown`
in `VanillaMarkdownParser` and within `DyadMarkdownParser` for markdown
pieces
> - Ensures proper rendering of GFM features (tables, strikethrough,
autolinks, task lists) in chat content
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
f3eb069a860e6bf95f76a9bcc97b44d89fe07da7. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
Co-authored-by:
Claude Opus 4.5 <noreply@anthropic.com>
正在显示
请
注册
或者
登录
后发表评论