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 had to fork the component in order to pass node.style to renderMark.
Some ideas:
A. Allow passing a custom function for renderText, similar to renderMark.
B. Pass the full node to renderMark. In addition, consider removing renderText altogether and just calling a function that matches IS_BOLD etc. from within renderMark. That one could also be exported, so custom renderMark implementations could reuse it.
Consider making parsing of styles and maybe other relevant node attributes like class part of the included renderMark function.
The text was updated successfully, but these errors were encountered:
I apply custom styles to my marks, e.g.
color
, similar to how it's done in the Lexical playground.Therefore I need to parse
style
:And use it like this:
I had to fork the component in order to pass
node.style
torenderMark
.Some ideas:
renderText
, similar torenderMark
.B. Pass the full node to
renderMark
. In addition, consider removingrenderText
altogether and just calling a function that matchesIS_BOLD
etc. from withinrenderMark
. That one could also be exported, so customrenderMark
implementations could reuse it.class
part of the includedrenderMark
function.The text was updated successfully, but these errors were encountered: