Feat v0.4.4 rich editor import export (#26)
All checks were successful
CI/CD / detect-changes (push) Successful in 3s
CI/CD / test-frontend (push) Successful in 5s
CI/CD / test-go-pg (push) Successful in 2m35s
CI/CD / test-sqlite (push) Successful in 2m49s
CI/CD / build-and-deploy (push) Successful in 29s

This commit was merged in pull request #26.
This commit is contained in:
2026-03-29 19:25:30 +00:00
parent 31ab572c95
commit cee65c4136
6 changed files with 378 additions and 27 deletions

View File

@@ -2,6 +2,32 @@
All notable changes to Switchboard Core are documented here.
## v0.4.4 — Rich Editor + Import/Export
### Added
- **CodeMirror 6 integration**: Notes editor now uses the vendored CM6 bundle
(`CM.noteEditor()`) for rich markdown editing with syntax highlighting,
wikilink autocomplete (`[[` triggers note title completion), and inline
preview decorations for headings, code blocks, and blockquotes.
- **CM6 dynamic loading**: Bundle loaded via `<script>` tag at boot time.
Falls back to plain textarea if CM6 is unavailable.
- **Export as .md**: Export button in editor header downloads the note as a
Markdown file with YAML frontmatter (title, tags, created date).
- **Import .md**: Import button in topbar allows uploading `.md`/`.markdown`/`.txt`
files. Parses YAML frontmatter for title and tags, creates note via API.
- **CSS for CM6**: Editor fills the container with `max-height: none` override
and proper scroller padding.
### Changed
- Notes package version bumped from 0.4.0 to 0.5.0.
- `EditorPane` component refactored to support CM6 with mutable refs for
title/body (required for CM6 callback closures).
- Ctrl/Cmd+S save works in both CM6 and textarea fallback modes.
---
## v0.4.3 — Backlinks + Wikilinks
### Added