Markdown copy, paste, and per-page Markdown export endpoint #30
Labels
No Label
area:auth
area:docs
area:export
area:ops
area:storage
area:supply-chain
auth
backend
blocked
collab
deployment
docs
effort:L
effort:M
effort:S
frontend
plugins
qa
vs-nfd
vs-nfd:blocker
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: stwaidele/dorfteich#30
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Markdown is the primary exchange format (vision); copy/paste must produce/consume it.
Scope
Wire
docToMarkdown/markdownToDoc(#24) into the editor: copying selected content puts Markdown alongside HTML on the clipboard; pasting Markdown text converts it to rich nodes (heuristic: parse when the text looks like Markdown, otherwise plain). AddGET /pages/:id/export/markdown(Content-Disposition download) and a 'copy page as Markdown' action in the page menu.Acceptance criteria
<slug>.mdmatching the fixture expectationTechnical notes
Dependencies
Depends on #24, #25.
Size: ~1 day
Conventions: English code/comments, clear human-readable code, no hard-coded UI strings (ADR 0012, add
deanden), permission checks only via the shared guard (docs/architecture/permissions.md). Read the referenced ADRs before starting.Implemented in
c9011cband closed viaCloses #30. Pipeline verification for that commit:Acceptance criteria covered by
apps/web/e2e/markdown.spec.ts(run locally against the dev stack) andapps/api/src/pages/pages.e2e.db.test.ts(in CI): copying a heading+list selection yields Markdown on the clipboard, pasting a Markdown document recreates structure, plain-text paste is not mangled (heuristic false-positive unit tests inmarkdown-clipboard.test.ts), and the export endpoint downloads<slug>.mdmatching the fixture.