joplin icon indicating copy to clipboard operation
joplin copied to clipboard

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

Open RePlay-be opened this issue 11 months ago • 4 comments

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

RePlay-be avatar Mar 13 '24 08:03 RePlay-be

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

G0maa avatar Mar 19 '24 19:03 G0maa

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.

github-actions[bot] avatar Apr 19 '24 16:04 github-actions[bot]

This is still relevant.

RePlay-be avatar Apr 19 '24 20:04 RePlay-be

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.

github-actions[bot] avatar May 20 '24 16:05 github-actions[bot]