Skip to content

Commit

Permalink
Don't reformat markdown titles in issues
Browse files Browse the repository at this point in the history
  • Loading branch information
aikovdp committed Mar 23, 2024
1 parent dc69389 commit 5752756
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ private fun createIssueEmbed(issue: GHIssue): MessageEmbed {
val authorName = if (author.name != null) author.name else author.login
var issueBody = issue.body
.replace(Regex("(?s)<!--.*?-->"), "") // Removes HTML comments
.replace(Regex("###(.*)"), "**$1**") //Makes Markdown titles bold
.trim()
if (issueBody.length > MessageEmbed.DESCRIPTION_MAX_LENGTH) {
issueBody = issueBody.substring(0, MessageEmbed.DESCRIPTION_MAX_LENGTH - 1) + ""
Expand Down

0 comments on commit 5752756

Please sign in to comment.