diff --git a/core/src/Text.scala b/core/src/Text.scala index 6d5a1be..cccaf59 100644 --- a/core/src/Text.scala +++ b/core/src/Text.scala @@ -88,6 +88,9 @@ def firstLineEmpty(text: String): PlainOneLine = firstLine(text, "") + given string2FirstLineEmpty: Conversion[String, PlainOneLine] = + firstLineEmpty(_) + extension (p: PlainOneLine) def toString: String = p opaque type Markdown = String