Skip to content

Feat/001 markdown schema roundtrip - #5

Merged
hendrikebbers merged 7 commits into
mainfrom
feat/001-markdown-schema-roundtrip
Aug 16, 2026
Merged

Feat/001 markdown schema roundtrip#5
hendrikebbers merged 7 commits into
mainfrom
feat/001-markdown-schema-roundtrip

Conversation

@hendrikebbers

Copy link
Copy Markdown
Contributor

This pull request upgrades the Markdown editing and rendering components to fully support all Markdown constructs, preventing data loss and improving structural rendering. The changes include dependency updates, a new shared extension factory, comprehensive tests, and updated documentation to guide consumers through the behavioral improvements. There are no breaking API changes, but the rendering of Markdown is now much more faithful.

…actory

Add createMarkdownExtensions in src/lib as the single source of TipTap
extension configuration for MarkdownEditor and MarkdownView. Remove the
StarterKit trimming so headings, lists, task lists, blockquotes, code
blocks and horizontal rules survive round-trips instead of being silently
dropped. Task lists render but cannot be created (shortcut and input rule
stripped); underline stays disabled since Markdown cannot express it.

Configure link through StarterKit and drop the duplicate
@tiptap/extension-link dependency; promote @tiptap/extension-list to a
declared dependency.

Refs spec 001-markdown-schema-roundtrip
Instantiate a real Editor from createMarkdownExtensions and assert the
serialized Markdown for task lists, bullet/ordered lists, headings,
blockquotes, code blocks, horizontal rules, nested lists, inline marks,
mixed lists, empty and plain content. Also fix task lists serializing as
loose lists by giving TaskList a tight attribute, and verify underline is
absent from the schema.

Refs spec 001-markdown-schema-roundtrip
Replace the mock-everything component tests with real TipTap editors:
- MarkdownEditor no longer corrupts content on open, reports the full
  document (task list intact) on edit, and replaces the document on an
  external value change; toolbar still offers exactly Bold/Italic/
  Strikethrough/Link plus Unlink inside a link.
- Task list creation stays closed: Mod-Shift-9 and the '[ ] ' input rule
  do nothing (guarded against a default TaskItem that would create one),
  while Enter split and Shift-Tab lift still work inside a list.
- MarkdownView renders structure, task lists as checkboxes reflecting
  state, ignores checkbox clicks, and suppresses the prose bullet.

Refs spec 001-markdown-schema-roundtrip
Document the behavioral change (MarkdownEditor no longer corrupts stored
Markdown on open; MarkdownView now renders full structure) as an
agent-executable upgrade prompt, and add MarkdownEditor/MarkdownView to
the README component list. Mark all implementation steps complete.

Refs spec 001-markdown-schema-roundtrip
@hendrikebbers
hendrikebbers merged commit 85ff1f3 into main Aug 16, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant