multica/apps/web/components/common
Naiyuan Qing 097630c733 fix(editor): reliable markdown rendering via marked HTML pipeline
Replace @tiptap/markdown's beta contentType: "markdown" parser with a
dedicated marked-based HTML pipeline for loading markdown content.

The @tiptap/markdown parser silently drops content in complex documents
(tables, nested lists, mentions). Instead, we now:

1. Pre-convert mention links to <span data-type="mention"> HTML
2. Render markdown to HTML via a dedicated Marked instance with a custom
   renderer that wraps table cell content in <p> tags (required by
   Tiptap's TableCell block+ content spec)
3. Load as HTML — Tiptap's ProseMirror HTML parser handles everything
4. Keep @tiptap/markdown extension only for getMarkdown() serialization

Also adds Table extension support and aligns CSS with the old Markdown
component's minimal mode styling.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-02 19:24:33 +08:00
..
actor-avatar.tsx refactor(web): unify all avatar rendering with ActorAvatar 2026-04-01 16:58:43 +08:00
code-block-view.tsx feat(ui): editor UX improvements — lowlight, upload, emoji, comment editing 2026-03-31 18:37:53 +08:00
emoji-picker.tsx feat(reactions): add emoji reactions for comments and issue descriptions 2026-03-30 22:37:59 +08:00
file-upload-button.tsx fix(editor): unify image upload flow for paste and button 2026-04-02 18:02:28 +08:00
markdown-to-html.ts fix(editor): reliable markdown rendering via marked HTML pipeline 2026-04-02 19:24:33 +08:00
mention-extension.ts feat(editor): unify Tiptap editor for editing and readonly display 2026-04-02 16:35:52 +08:00
mention-hover-card.tsx feat(mentions): support @all to mention all workspace members 2026-04-01 20:58:33 +08:00
mention-suggestion.tsx feat(agent): replace hard delete with archive/restore (#346) 2026-04-02 17:33:52 +08:00
mention-view.tsx feat(editor): unify Tiptap editor for editing and readonly display 2026-04-02 16:35:52 +08:00
quick-emoji-picker.tsx feat(ui): editor UX improvements — lowlight, upload, emoji, comment editing 2026-03-31 18:37:53 +08:00
reaction-bar.tsx feat(ui): editor UX improvements — lowlight, upload, emoji, comment editing 2026-03-31 18:37:53 +08:00
readonly-editor.tsx fix(editor): reliable markdown rendering via marked HTML pipeline 2026-04-02 19:24:33 +08:00
rich-text-editor.css fix(editor): reliable markdown rendering via marked HTML pipeline 2026-04-02 19:24:33 +08:00
rich-text-editor.tsx fix(editor): reliable markdown rendering via marked HTML pipeline 2026-04-02 19:24:33 +08:00
title-editor.css feat(editor): add TitleEditor component, replace <input> for issue titles 2026-03-31 15:38:42 +08:00
title-editor.tsx fix(web): delay TitleEditor autofocus to avoid Dialog animation conflict 2026-04-01 14:15:31 +08:00