mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2026-07-01 07:35:06 +00:00
Modify markdown function to add newlines
This commit is contained in:
@@ -54,7 +54,7 @@ data class RichBlockParagraph(
|
||||
|
||||
companion object {
|
||||
const val TYPE = "paragraph"
|
||||
fun markdown(text: RichText): String = text.markdown
|
||||
fun markdown(text: RichText): String = "\n${text.markdown}\n"
|
||||
fun html(text: RichText): String = "<p>${text.html}</p>"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user