halilozercan / compose-richtext

A collection of Compose libraries for advanced text formatting and alternative display types.
https://halilibo.com/compose-richtext
Apache License 2.0
750 stars 59 forks source link

Add autolink (linkify) functionality to Markdown #101

Closed morrisseyai closed 1 year ago

morrisseyai commented 1 year ago

PR updates the commonmark-java dependency to 0.20.0 and introduces autolink (linkify) functionality.

I have added MarkdownParseOptions which allows consumers of the library to control whether or not the autolink functionality is enabled. Addresses #95

Note: autolink is enabled with the new MarkdownParseOptions defaults, which means there is a minor (but worth mentioning) behaviour change here.

Short demo:

https://user-images.githubusercontent.com/8967185/197316145-59e72a17-5bf2-4e8f-b191-eccef2401064.mp4

halilozercan commented 1 year ago

Thanks 🎉