documentationPreview

fun documentationPreview(markdown: String, maxLength: Int = 80): String

A one-line plain-text preview of markdown: its first paragraph that isn't just a code span (stdlib docs open with a ` `usage(?Template)` ` line), stripped of backticks and truncated to maxLength with ….