laurent22 / joplin

Joplin - the privacy-focused note taking app with sync capabilities for Windows, macOS, Linux, Android and iOS.
https://joplinapp.org
Other
45.06k stars 4.9k forks source link

Bug in ENEX to Markdown parser incorrectly adds paragraphs to bullet points with a newline #10111

Open RePlay-be opened 6 months ago

RePlay-be commented 6 months ago

Operating system

Windows

Joplin version

2.14.19

Desktop version info

Joplin 2.14.19 (prod, win32)

Client ID: 62323e34766e473db4454cb0f5bcc4b3 Sync Version: 3 Profile Version: 46 Keychain Supported: Yes

Revision: 971c4e5

Backup: 1.4.0

Current behaviour

Found a bug when importing from Evernote to Markdown: bullet points that have a newline will have the next line placed in a new paragraph. Interestingly, the bug does not happen with numbered items.

Original in Evernote: wRFBiz8

Result after importing in Joplin: gWG7zZt

Steps to reproduce:

  1. Import the attached ENEX as Markdown

List items.enex.zip

Expected behaviour

There should not be a new paragraph.

Logs

No response

G0maa commented 5 months ago

Hello, I spoke about this bug on Discord, so this is just for reference as it may help someone else (or future me):

I traced this bug to this function: https://github.com/laurent22/joplin/blob/dev/packages/lib/import-enex-md-gen.ts#L256-L300

You can find unit tests for this function here: https://github.com/laurent22/joplin/tree/dev/packages/app-cli/tests/enex_to_md

github-actions[bot] commented 4 months ago

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? If you require support or are requesting an enhancement or feature then please create a topic on the Joplin forum. This issue may be closed if no further activity occurs. You may comment on the issue and I will leave it open. Thank you for your contributions.

RePlay-be commented 4 months ago

This is still relevant.

github-actions[bot] commented 3 months ago

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? If you require support or are requesting an enhancement or feature then please create a topic on the Joplin forum. This issue may be closed if no further activity occurs. You may comment on the issue and I will leave it open. Thank you for your contributions.