From 812702aa9afbfe8de7672520852a6066341a4dc0 Mon Sep 17 00:00:00 2001 From: Clawd Date: Sat, 28 Feb 2026 13:51:38 -0800 Subject: Add CodeMirror 6 for markdown editing - Install CodeMirror 6 with markdown language support - Add MarkdownEditor component with: - Syntax highlighting for markdown - Line numbers - Active line highlighting - History (undo/redo) - One Dark theme - Code block language highlighting - Keep react-markdown for preview mode - Add CSS for CodeMirror integration --- renderer/src/styles/globals.css | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'renderer/src/styles/globals.css') diff --git a/renderer/src/styles/globals.css b/renderer/src/styles/globals.css index 384ebc5..f115734 100644 --- a/renderer/src/styles/globals.css +++ b/renderer/src/styles/globals.css @@ -152,6 +152,20 @@ body { color: var(--text-primary); } +.codemirror-editor { + flex: 1; + overflow: hidden; +} + +.codemirror-editor .cm-editor { + height: 100%; +} + +.codemirror-editor .cm-gutters { + background: var(--bg-secondary); + border-right: 1px solid var(--border); +} + .document-content.rendered { line-height: 1.7; } -- cgit v1.2.3