-
Notifications
You must be signed in to change notification settings - Fork 69
Open
Description
When pasting plain text, Lexxy converts it through marked (markdown parser):
#pasteMarkdown(text) {
const html = k(text); // k is the marked library
this.contents.insertHtml(html, { tag: [ Fn ] });
}
The marked library (v16.4.1) is called with default options, which means:
- breaks: false (default) - Single newlines become spaces, not
tags - Standard Markdown behavior - Empty lines between paragraphs collapse into single paragraph boundaries
In Markdown, consecutive empty lines don't produce multiple
tags or empty paragraphs - they just
separate paragraphs.
Example of what happens:
Line 1
Line 2
Line 3
Becomes:
Line 1
Line 2
Line 3
(No empty paragraph between Line 2 and Line 3)To fix this, Lexxy would need to call marked with { breaks: true } or use a custom renderer.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels