hast-util-to-html href
attribute handling
#114
-
I have a problem with toHtml. It stringifies The issueBasically, what I expect to see when converting a tree containing a link element is a It's not like the link doesn't work in browser anymore after such a metamorphosis. But a certain amazon service don't understand the joke and doesn't want to track modified link properly. The "bug" and its locationHere's the problem place. The Moreover, I cannot disable these substitutions by using input options. The questionI want either:
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 12 replies
-
it’s not a bug here. Rather, without it, this project would be completely broken. It’s a bug with amazon. Raise it with them.
That would be completely broken.
This is not a sentence that follows “I want either”? I don‘t understand what you want.
There are many options that affect character references, as explained in the readme: https://github.com/syntax-tree/hast-util-to-html. Perhaps the |
Beta Was this translation helpful? Give feedback.
-
Hi there I believe
Would it make sense to special case how entities are stringified for anchor hrefs? happy to add a condition there if that's helpful |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
it’s not a bug here. Rather, without it, this project would be completely broken.
It’s a bug with amazon. Raise it with them.
That would be completely broken.
This is not a sentence that follows “I want either”? I don‘t understand what you want.
There are many options that affect character references, as explained in the readme: https://github.com/syntax-tree/hast-util-to-html. Perhaps the
characterReferences
option? PerhapsallowParseErrors
might be of interest too?