feat(ext-blog): Add rich Markdown editor for blog posts

Replace the plain textarea with a CodeMirror-based editor supporting syntax highlighting, formatting toolbar (bold, italic, lists, code blocks), and a live preview toggle. Update PostContentRenderer to handle new Markdown syntax (blockquotes, fenced code blocks). Add a preview endpoint for rendering content without saving.
This commit is contained in:
2026-12-02 10:20:36 +00:00
parent e97d96c1f5
commit 2d4b196b04
17 changed files with 1127 additions and 38 deletions
+4
View File
@@ -15,6 +15,10 @@
"tailwindcss": "^4.3.5"
},
"dependencies": {
"@codemirror/commands": "^6.11.2",
"@codemirror/lang-markdown": "^6.5.3",
"@codemirror/language": "^6.13.1",
"@codemirror/view": "^6.44.2",
"alpinejs": "^3.12.2",
"grapesjs": "0.22.16",
"slugify": "^1.6.6"