fix: Make sure that the blockquote markdown for github issue comments are valid commonmark (#746)

* fix: Make sure that the blockquote mardkown for github issue comments are valid commonmark

* Add changelog file
This commit is contained in:
Marcel 2023-05-18 21:18:04 +02:00 committed by GitHub
parent 466ab6d5e3
commit b91ca94249
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

1
changelog.d/746.bugfix Normal file
View File

@ -0,0 +1 @@
Fix Github comments not being rendered correctly as blockquotes.

View File

@ -912,7 +912,7 @@ export class GitHubRepoConnection extends CommandConnection<GitHubRepoConnection
} }
let message = `**${event.comment.user.login}** [commented](${event.issue.html_url}) on [${event.repository.full_name}#${event.issue.number}](${event.issue.html_url}) `; let message = `**${event.comment.user.login}** [commented](${event.issue.html_url}) on [${event.repository.full_name}#${event.issue.number}](${event.issue.html_url}) `;
message += "\n > " + event.comment.body.substring(0, TRUNCATE_COMMENT_SIZE) + (event.comment.body.length > TRUNCATE_COMMENT_SIZE ? "…" : ""); message += "\n> " + event.comment.body.substring(0, TRUNCATE_COMMENT_SIZE) + (event.comment.body.length > TRUNCATE_COMMENT_SIZE ? "…" : "");
await this.intent.sendEvent(this.roomId, { await this.intent.sendEvent(this.roomId, {
msgtype: "m.notice", msgtype: "m.notice",