Skip to content

feat: add Markdown export & import functionality#37

Merged
j4rviscmd merged 2 commits intomainfrom
feat/md-export-import
Mar 24, 2026
Merged

feat: add Markdown export & import functionality#37
j4rviscmd merged 2 commits intomainfrom
feat/md-export-import

Conversation

@j4rviscmd
Copy link
Copy Markdown
Owner

Summary

  • Add Markdown export: right-click a note → "Export as Markdown" → save dialog → .md file
  • Add Markdown import: sidebar "Import Markdown" button → open dialog → creates new note from .md file
  • Uses BlockNote's blocksToMarkdownLossy / tryParseMarkdownToBlocks for conversion
  • Includes post-processing fix for BlockNote's table export (removes empty header row artifact)
  • Adds read_text_file / write_text_file Rust commands and @tauri-apps/plugin-dialog for native file dialogs

Related

Test plan

  • Export a note with headings, lists, bold/italic, links → verify Markdown output
  • Export a table → verify correct Markdown table format (no empty header row)
  • Import a .md file → verify it creates a new note with correct formatting
  • Export unsaved edits → verify latest in-memory content is exported (not stale DB content)
  • Cancel export/import dialogs → verify no side effects

🤖 Generated with Claude Code

j4rviscmd and others added 2 commits March 24, 2026 20:50
Add ability to export notes as Markdown files and import Markdown files
as new notes. Export uses native save dialog and converts BlockNote
content to Markdown. Import uses native open dialog and parses Markdown
into BlockNote blocks. Includes a post-processing fix for BlockNote's
table export where an empty header row is incorrectly inserted.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@j4rviscmd j4rviscmd added the enhancement New feature or request label Mar 24, 2026
@j4rviscmd j4rviscmd merged commit 32a1479 into main Mar 24, 2026
@j4rviscmd j4rviscmd deleted the feat/md-export-import branch March 24, 2026 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: SQLite + BlockNote JSON から ファイルベース Markdown ストレージへの移行

1 participant