document-highlighter icon indicating copy to clipboard operation
document-highlighter copied to clipboard

Possibility to split up existing HTML instead of the highlighting markup?

Open Haraldson opened this issue 2 years ago • 0 comments

Hello! I’ve just briefly looked at this project and so far it seems like one of the projects that most closely matches my needs.

However – I want to use react-rough-notation to draw fancier highlighting, and in order to make that look alright, the highlight would have to be kept as one element, and the preexisting DOM split up.

Currently, this will be the result:

<em>Eat drink and be <strong>merry</strong></em><strong class="secondary"> for tomorrow</strong> we die

What would be really helpful, is if I could somehow configure this utility to instead produce the following output:

<em>Eat drink and be </em><HIGHLIGHT><em>merry</em> for tomorrow</HIGHLIGHT> we die

Is this something you’ve thought about at all?

Haraldson avatar Nov 29 '23 14:11 Haraldson