Skip to content

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

@Haraldson

Description

@Haraldson

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions