1
0
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:
2026-07-01 01:16:36 +06:00
committed by GitHub
parent edad79ace8
commit 3a05a88d4f

View File

@@ -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>"
}
}