• Will Chen's avatar
    Enable GFM (GitHub Flavored Markdown) support in markdown parser (#2353) · ff07bbc5
    Will Chen 提交于
    ## 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: 's avatarClaude Opus 4.5 <noreply@anthropic.com>
    ff07bbc5
名称
最后提交
最后更新
..
__tests__ 正在载入提交数据...
app 正在载入提交数据...
atoms 正在载入提交数据...
client_logic 正在载入提交数据...
components 正在载入提交数据...
constants 正在载入提交数据...
contexts 正在载入提交数据...
db 正在载入提交数据...
hooks 正在载入提交数据...
ipc 正在载入提交数据...
lib 正在载入提交数据...
main 正在载入提交数据...
neon_admin 正在载入提交数据...
pages 正在载入提交数据...
paths 正在载入提交数据...
pro 正在载入提交数据...
prompts 正在载入提交数据...
routes 正在载入提交数据...
shared 正在载入提交数据...
store 正在载入提交数据...
styles 正在载入提交数据...
supabase_admin 正在载入提交数据...
utils 正在载入提交数据...
backup_manager.ts 正在载入提交数据...
main.ts 正在载入提交数据...
preload.ts 正在载入提交数据...
renderer.tsx 正在载入提交数据...
router.ts 正在载入提交数据...