Hi @betternote,
This is more complicated than I had expected. In the first place: copy/paste from the Joplin viewer works for me, at least in Outlook on Windows. Exporting to HTML and copy/paste from Firefox drops the styling, but the same trick with Chrome as intermediary is okay again.
Even when it is a success, it’s not a complete success. Ik lose some of the stylings by false tags, but not in all cases. I don’t see the pattern yet.
As for keeping the styles available to my exported HTML, I use this model:
- Let’s presume I want to export my note “The Nature of Reality” to
~/thoughts/content/The Nature of Reality.html
(I put all my deep thoughts in that folder). - I’ve made this copy of my personal stylesheet:
~/thoughts/style/userstyle.css
. - I put a relative reference to that stylesheet in my note (this has no effect in Joplin, since it cannot interpret such references well). It can be done in several ways:
<style>
@import "../style/userstyle.css";
</style>
Or:
<link rel="stylesheet" href="../style/userstyle.css"/>
Both Firefox and Chrome render the exported note as wished for. But as said, some stylings may get lost in the copying from Joplin or Chrome to a message.