Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Haraldson opened this issue Nov 29, 2023 · 0 comments

Comments

@Haraldson
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant