feat(workspace): numbered lists and reliable markdown paste
MindSift CI & Docker Release / Build, Test in Container & Push (push) Successful in 2m5s

- block type 'numbered' (/number): 1., a., i. by nesting, continues on
  Enter, an empty item ends the list; markdown export/import as 1.
- pasting: parser moved to lib/pasteOutline with tests; blank lines split
  paragraphs, numbered lists keep their type, indentation levels follow
  the widths in use (2, 3 or 4 spaces, tabs)
- text that stays in the focused block after pasting (a paragraph with
  line breaks) was dropped; the block now takes it

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
sandrodachandClaude Opus 5.5 committed 2026-10-30 19:36:15 +01:00
1 parent 9008d7c915
commit 2bfe74e66b
13 files changed
+286 -176

No files matched your search

+3
View File
@@ -258,6 +258,9 @@ func blocksToVaultMarkdown(blocks []domain.DocumentBlock, attachment func(id str
sb.WriteString(indent + "- ---\n")
case "callout":
sb.WriteString(indent + "- > " + cont(content, " > ") + "\n")
case "numbered":
// Markdown renumbers the items itself
sb.WriteString(indent + "1. " + cont(content, " ") + "\n")
default:
if strings.TrimSpace(content) == "" {
sb.WriteString(indent + "-\n")