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