Closed equationl closed 1 year ago
This is set imgFillMaxWidth = true
:
And this is false
:
About click img:
Markdown(
content = sampleMarkdown,
markdownParseOptions = markdownParseOptions,
onLinkClicked = {
Toast.makeText(context, it, Toast.LENGTH_SHORT).show()
},
onImgClicked = {
Toast.makeText(context, it, Toast.LENGTH_SHORT).show()
}
)
@halilozercan Hello, please check this PR, thanks
From #108 #73 .
Add
imgFillMaxWidth: Boolean
toMarkdownParseOptions
, which can make img fill parent's layout max width.And add
onImgClicked: ((String) -> Unit)? = null
toRichTextScope.Markdown
, which support callonImgClicked(url)
when picture in MarkDown be clicked.