Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
RePlay-be opened this issue Mar 13, 2024 · 5 comments
Labels
bug It's a bug desktop All desktop platforms import Related to importing files such as ENEX, JEX, etc. medium Medium priority issues

Comments

@RePlay-be
Copy link

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 RePlay-be added the bug It's a bug label Mar 13, 2024
@personalizedrefrigerator personalizedrefrigerator added desktop All desktop platforms import Related to importing files such as ENEX, JEX, etc. labels Mar 14, 2024
@G0maa
Copy link

G0maa commented Mar 19, 2024

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

Copy link
Contributor

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 github-actions bot added the stale An issue that hasn't been active for a while... label Apr 19, 2024
@RePlay-be
Copy link
Author

This is still relevant.

@github-actions github-actions bot removed the stale An issue that hasn't been active for a while... label Apr 20, 2024
Copy link
Contributor

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 github-actions bot added the stale An issue that hasn't been active for a while... label May 20, 2024
@personalizedrefrigerator personalizedrefrigerator added medium Medium priority issues and removed stale An issue that hasn't been active for a while... labels May 20, 2024
@sugalipravallikabai
Copy link

Hey, if this issue is opened on import or enhancement I just need resolve it i am taking this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug It's a bug desktop All desktop platforms import Related to importing files such as ENEX, JEX, etc. medium Medium priority issues
Projects
None yet
Development

No branches or pull requests

4 participants