1943time / inkdown

A WYSIWYG Markdown editor, improve reading and editing experience. and generate your Markdown files into online documents in the easiest and fastest way.
https://www.inkdown.me
GNU Affero General Public License v3.0
861 stars 35 forks source link

Task List line breaks bug #31

Closed ww-wolt closed 5 months ago

ww-wolt commented 5 months ago

There is a little bug when formatting task lists. When I put line breaks between the items, they are somehow not saved. When I close and reopen the application the line breaks are reset.

Line Breaks formatting

Bildschirmfoto 2024-01-13 um 10 03 56

No line breaks anymore when reopening the application

Bildschirmfoto 2024-01-13 um 10 04 30
1943time commented 5 months ago

This is because the current mainstream markdown parser behavior is such that no matter how many lines are left between two lists, they will be ignored during parsing. At present, it is recommended to use dividing lines or other elements to interrupt them.

image

The same goes for vscode.

ww-wolt commented 5 months ago

what about just adding <br/> in that case? similar to the color formattings in Bluestone that are also done with HTML

1943time commented 5 months ago

This approach can be considered, but some modifications and testing are required for the existing export and parsing.

yu2chuan commented 5 months ago

about \
, can it be used in the table? Sometimes, users need to break line in the table.

1943time commented 5 months ago
image

Bluestone does not directly parse HTML content, but can wrap lines within the table using shortcut keys, What will be used in exporting source code is br

1943time commented 5 months ago

Hello, This issue has been resolved in the new version.