There is an issue with the LinkClickHandler not working properly when a link is placed inside a markdown list, as in the example above.
I found that the process of parsing the markdown syntax and converting it to ASTs works recursively. In this case, if the type of AST node is AstUnorderedList or AstOrderedList, it calls the FormattedList() Composable function, which calls the BasicRichText function inside the FormattedList() Composable function. However, the linkClickHandler parameter of the BasicRichText()Composable function is not used, so the LinkClickHandler registered by the user is not working properly. Rather, the LinkClickHandler is becoming null.
Inside the FormattedList() Composable function, I also modified the LocalLinkClickHandler to accept a user-registered LinkClickHandler and pass it to the BasicRichText() Composable function.
There is an issue with the LinkClickHandler not working properly when a link is placed inside a markdown list, as in the example above.
I found that the process of parsing the markdown syntax and converting it to ASTs works recursively. In this case, if the type of AST node is
AstUnorderedList
orAstOrderedList
, it calls theFormattedList()
Composable function, which calls the BasicRichText function inside theFormattedList()
Composable function. However, the linkClickHandler parameter of theBasicRichText()
Composable function is not used, so theLinkClickHandler
registered by the user is not working properly. Rather, theLinkClickHandler
is becoming null.Inside the
FormattedList()
Composable function, I also modified theLocalLinkClickHandler
to accept a user-registeredLinkClickHandler
and pass it to theBasicRichText()
Composable function.Please review the modified code.
Thank you