How can you pass the href to a defaultRichTextElements for the <a> HTML element? #3933
Unanswered
scottdickerson
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The example here describes that anchor tags
<a
can be formatted to apply design system rules. However, I don't understand how to pass thehref
to the custom formatting function.I've tried to parse the
...chunks
function parameter based on some convention but those are returned asReactNode[]
notstring[]
so I can't map any of them to thehref
attribute of the<a
tag.Console:
Is there a way to somehow pass this
href
attribute in the message?This is the issue where this functionality was added:
#1752
Beta Was this translation helpful? Give feedback.
All reactions