compute
fun compute(text: String, mentions: List<<Error class: unknown class>> = emptyList()): List<IntRange>
Computes a list of UTF-16 ranges that should be excluded from link preview detection.
Return
List of IntRange(s) covering mentioned text and markdown link URLs.
Parameters
text
The message text.
mentions
List of mentions to exclude.