but there's no default handling for the web url click.
Solution
Setting MarkwonConfiguration.Builder.linkResolver overrides Markwon's default behaviour - see LinkResolverDef and how it's used in MarkwonConfiguration.Builder. Proposed solution is to only configure a linkResolver if the client explicitly requests to handle link clicks i.e. when they pass in onLinkClicked.
Description
Having markdown text like:
And usage like:
styles the link correctly, but does nothing when the link is clicked. Passing in
onLinkClicked
does trigger the callback:but there's no default handling for the web url click.
Solution
Setting
MarkwonConfiguration.Builder.linkResolver
overrides Markwon's default behaviour - see LinkResolverDef and how it's used in MarkwonConfiguration.Builder. Proposed solution is to only configure alinkResolver
if the client explicitly requests to handle link clicks i.e. when they pass inonLinkClicked
.Note: I believe this partially fixes https://github.com/jeziellago/compose-markdown/issues/46