fix(editor): reliable markdown paste and inline code line spacing
Markdown paste: replace heuristic-based detection with a single deterministic check — only use HTML clipboard path when source is another ProseMirror editor (identified by data-pm-slice attribute). All other pastes (VS Code, text editors, terminals, .md files) parse text/plain as Markdown via @tiptap/markdown. Inline code: add box-decoration-break: clone and line-height: 2 so multi-line inline code renders with proper spacing between lines. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
30640436c4
commit
b5924ffa99
2 changed files with 26 additions and 11 deletions
|
|
@ -125,6 +125,9 @@
|
|||
color: color-mix(in srgb, var(--foreground) 75%, transparent);
|
||||
padding: 0.125rem 0.375rem;
|
||||
border-radius: var(--radius-sm);
|
||||
box-decoration-break: clone;
|
||||
-webkit-box-decoration-break: clone;
|
||||
line-height: 2;
|
||||
}
|
||||
|
||||
/* Code blocks */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue