Skip to content

Commit

Permalink
fix: breaking change caused by previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ShindouMihou committed Dec 2, 2023
1 parent 821d8e8 commit 9296a21
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ interface TextStyles {
* @param spoiler whether to hide the text behind a spoiler.
*/
fun p(text: String, bold: Boolean = false, underline: Boolean = false, italic: Boolean = false,
strikethrough: Boolean = false, spoiler: Boolean = false): String {
val (prefix, suffix) = renderTextStyles(bold, underline, italic, strikethrough, spoiler)
strikethrough: Boolean = false, spoiler: Boolean = false, highlighted: Boolean = false): String {
val (prefix, suffix) = renderTextStyles(bold, underline, italic, strikethrough, spoiler, highlighted)
return prefix + text + suffix
}

Expand Down Expand Up @@ -121,7 +121,7 @@ interface TextStyles {
* @param highlighted whether to make the text highlighted.
*/
fun link(text: String, href: String, bold: Boolean = false, underline: Boolean = false, italic: Boolean = false,
strikethrough: Boolean = false, spoiler: Boolean = false, highlighted: Boolean): String {
strikethrough: Boolean = false, spoiler: Boolean = false, highlighted: Boolean = false): String {
val (prefix, suffix) = renderTextStyles(bold, underline, italic, strikethrough, spoiler, highlighted)
return "$prefix[$text]($href)$suffix"
}
Expand Down

0 comments on commit 9296a21

Please sign in to comment.