Skip to content

fix(editor): add trailing line after terminal blocks#233

Merged
murongg merged 1 commit into
mainfrom
fix/231-terminal-block-trailing-line
Jun 10, 2026
Merged

fix(editor): add trailing line after terminal blocks#233
murongg merged 1 commit into
mainfrom
fix/231-terminal-block-trailing-line

Conversation

@murongg

@murongg murongg commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add a trailing-line editor affordance after terminal container blocks such as tables, callouts, and lists.
  • Insert a real paragraph only when the user clicks that trailing line, keeping loaded Markdown content unchanged until explicit editing.
  • Cover tables, callouts, unordered lists, and ordered lists with a regression test.

Why

Terminal non-plain blocks at the end of the document had no top-level text position after them, so users could not click below the final block to create a new blank line.

Fixes #231

Validation

  • pnpm --filter @markra/app exec vitest run src/components/MarkdownPaper.test.tsx passed
  • pnpm --filter @markra/app test passed
  • pnpm --filter @markra/editor test passed
  • pnpm --filter @markra/app build passed
  • pnpm --filter @markra/editor build passed
  • git diff --check passed

@vercel

vercel Bot commented Jun 10, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
markra-web Ready Ready Preview, Comment Jun 10, 2026 2:35am

@murongg
murongg marked this pull request as ready for review June 10, 2026 02:43
@murongg
murongg merged commit d114836 into main Jun 10, 2026
4 checks passed
@murongg
murongg deleted the fix/231-terminal-block-trailing-line branch June 10, 2026 02:43
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.

[Editor]: 无法在“非普通文本行”的格式后新建空行

1 participant