Operating system
Windows
Joplin version
2.13.12
Desktop version info
Joplin 2.13.12 (prod, win32)
Sync Version: 3
Profile Version: 44
Keychain Supported: Yes
Revision: e027cdc
Editor
Markdown Editor
What issue do you have?
Joplin 2.13.12 on Windows 10 x64 properly imports ENEX notes (as Markdown), exported from classic desktop Evernote 6.25.1, that contain text that is marked both Highlighted and Bold, when such markings were done natively in Evernote itself.
Joplin 2.13.12 on Windows 10 x64 cannot properly import such ENEX notes (as Markdown), when the text fragments marked both Highlighted and Bold had been copy-pasted into Evernote from Microsoft Word.
It seems the difference is that Evernote itself employs classic < b > tag:
<div><span STYLE="background-color: rgb(255, 250, 165);-evernote-highlight:true;"><b>This line is both highlighted and bold</b></span></div>
While text copy-pasted into Evernote from Microsoft Word relies on < span STYLE >:
<div STYLE="margin-top: 1em; margin-bottom: 1em;"><span STYLE="font-weight: bold; background: yellow; mso-highlight: yellow;-en-paragraph:true;">This line is both highlighted and bold</span></div>
As a result, import ENEX notes (as Markdown) misses either Highlight or Bold.
A workaround is to use import ENEX notes (as HTML), but the MSWord-originated HTML is messy, practically uneditable when compared to clean Markdown Joplin notes.
It would be much more convenient if import ENEX notes (as Markdown) properly worked with Highlighted and Bold fragments that are marked via < span STYLE > tag.
Please, let me know if any additional information is needed.
Thank you.
Sample ENEX file to reproduce the issue, shown on attached screenshots:
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE en-export SYSTEM "http://xml.evernote.com/pub/evernote-export2.dtd">
> <en-export export-date="20240101T053020Z" application="Evernote/Windows" version="6.x">
> <note><title>Test note with highlight and bold</title><content><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE en-note SYSTEM "http://xml.evernote.com/pub/enml2.dtd">
>
> <en-note><div>This is a regular line</div><div><br/></div><div><span style="background-color: rgb(255, 250, 165);-evernote-highlight:true;">This line is highlighted</span></div><div><br/></div><div><b>This line is bold</b></div><div><br/></div><div><span style="background-color: rgb(255, 250, 165);-evernote-highlight:true;"><b>This line is both highlighted and bold</b></span></div><div><span style="background-color: rgb(255, 250, 165);-evernote-highlight:true;"><b><br/></b></span></div><div style="margin-top: 1em; margin-bottom: 1em;"><span style="-en-paragraph:true;">The following lines were copy-pasted from Microsoft Word to Evernote, then exported via ENEX:</span></div><div style="margin-top: 1em; margin-bottom: 1em;"><span style="-en-paragraph:true;"> </span></div><div style="margin-top: 1em; margin-bottom: 1em;"><span style="-en-paragraph:true;">This is a regular line</span></div><div style="margin-top: 1em; margin-bottom: 1em;"><span style="-en-paragraph:true;"> </span></div><div style="margin-top: 1em; margin-bottom: 1em;"><span style="background: yellow; mso-highlight: yellow;-en-paragraph:true;">This line is highlighted</span></div><div style="margin-top: 1em; margin-bottom: 1em;"><span style="-en-paragraph:true;"> </span></div><div style="margin-top: 1em; margin-bottom: 1em;"><span style="font-weight: bold;-en-paragraph:true;">This line is bold</span></div><div style="margin-top: 1em; margin-bottom: 1em;"><span style="-en-paragraph:true;"> </span></div><div style="margin-top: 1em; margin-bottom: 1em;"><span style="font-weight: bold; background: yellow; mso-highlight: yellow;-en-paragraph:true;">This line is both highlighted and bold</span></div></en-note>]]></content><created>20240101T052555Z</created><updated>20240101T053015Z</updated><note-attributes><author>aidar</author><source>desktop.win</source><source-application>evernote.win32</source-application></note-attributes></note></en-export>