You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I searched issues and couldn’t find anything (or linked relevant results below)
Problem
I want to be able to add/remove characters that should be escaped. I see that you have hard coded values here, so I would like to be able to change them.
Solution
Add the subset option to the list of all options, change the order for option assigning here.
Alternatives
I don't see any alternatives, I was trying to add my own plugin for rehype that escapes some symbols in text using HTML symbols, but it doesn't work because the symbol "&" is always escaped.
The text was updated successfully, but these errors were encountered:
I want to be able to add/remove characters that should be escaped
Why? Characters need to be escaped to make HTML valid.
Producing invalid HTML seems like a non-goal?
I was trying to add my own plugin for rehype that escapes some symbols in text using HTML symbols, but it doesn't work because the symbol "&" is always escaped.
I'm not sure I follow this, you don't want it to be escaped, so you can escape it anyway?
Reading between the lines this sounds very similar to past questions where an external platform didn't actually handle HTML correctly or trying to make non-HTML from HTML (recent example: #35)
If it is HTML related, open an issue with the platform for them to handle HTML.
If it is a non-HTML variant, you may want a different renderer or syntax tree.
Initial checklist
Problem
I want to be able to add/remove characters that should be escaped. I see that you have hard coded values here, so I would like to be able to change them.
Solution
Add the
subset
option to the list of all options, change the order for option assigning here.Alternatives
I don't see any alternatives, I was trying to add my own plugin for rehype that escapes some symbols in text using HTML symbols, but it doesn't work because the symbol "&" is always escaped.
The text was updated successfully, but these errors were encountered: