joplin
joplin copied to clipboard
Bug in ENEX to Markdown parser incorrectly adds paragraphs to bullet points with a newline
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:
Result after importing in Joplin:
Steps to reproduce:
- Import the attached ENEX as Markdown
Expected behaviour
There should not be a new paragraph.
Logs
No response
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
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.
This is still relevant.
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.