The fix for issue #2598 overloads the insert method used by the clipboard paste. This now only handles plain text, but can easily be extended to capture HTML pastes and convert those to novelWriter markup.
A way to solve it could be to populate a temporary document with the pasted text and then iterate over the content and extract the supported formatting. It is probably best to do this with a standalone formatter class under formats.
The fix for issue #2598 overloads the insert method used by the clipboard paste. This now only handles plain text, but can easily be extended to capture HTML pastes and convert those to novelWriter markup.
A way to solve it could be to populate a temporary document with the pasted text and then iterate over the content and extract the supported formatting. It is probably best to do this with a standalone formatter class under formats.