feat(editor): add ReadonlyContent component for lightweight markdown display

- Add del selector to strikethrough CSS for react-markdown compatibility
- Create ReadonlyContent using react-markdown + lowlight + content-editor.css
- Export from editor module index

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Naiyuan Qing 2026-04-08 12:57:42 +08:00
parent 88c2f4ddc4
commit 4df32a853b
3 changed files with 158 additions and 1 deletions

View file

@ -353,7 +353,8 @@
font-style: italic;
}
.rich-text-editor s {
.rich-text-editor s,
.rich-text-editor del {
text-decoration: line-through;
color: var(--muted-foreground);
}