Skip to content

Commit

Permalink
[MM-1081]: Fixed the rendering of hyperlink in tooltip (#1128)
Browse files Browse the repository at this point in the history
* [MM-1081]: Fixed the rendering of hyperlink in tooltip

* [MM-1081]: Fixed the link markdown in tooltip

* [MM-1081]: Moved the markdown rendering to server
  • Loading branch information
Kshitij-Katiyar authored Jan 30, 2025
1 parent fe05055 commit 4795a7d
Show file tree
Hide file tree
Showing 5 changed files with 484 additions and 3 deletions.
1 change: 1 addition & 0 deletions server/issue.go
Original file line number Diff line number Diff line change
Expand Up @@ -1093,6 +1093,7 @@ func (p *Plugin) GetIssueByKey(instanceID, mattermostUserID types.ID, issueKey s
return nil, errors.WithMessage(err, "request to Jira failed")
}
}
issue.Fields.Description = preProcessText(issue.Fields.Description)
return issue, nil
}

Expand Down
2 changes: 1 addition & 1 deletion server/webhook_parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ func parseWebhookChangeLog(jwh *JiraWebhook) Webhook {

func parseWebhookCreated(jwh *JiraWebhook) Webhook {
wh := newWebhook(jwh, eventCreated, "**created**")
wh.text = jwh.mdIssueDescription()
wh.text = preProcessText(jwh.mdIssueDescription())

if jwh.Issue.Fields == nil {
return wh
Expand Down
Loading

0 comments on commit 4795a7d

Please sign in to comment.