|
42 | 42 | package com.junichi11.netbeans.modules.github.issues.issue; |
43 | 43 |
|
44 | 44 | import com.junichi11.netbeans.modules.github.issues.GitHubIssueState; |
45 | | -import com.junichi11.netbeans.modules.github.issues.GitHubIssues; |
46 | 45 | import com.junichi11.netbeans.modules.github.issues.GitHubIssuesConfig; |
47 | 46 | import com.junichi11.netbeans.modules.github.issues.repository.GitHubRepository; |
48 | 47 | import com.junichi11.netbeans.modules.github.issues.utils.DateUtils; |
| 48 | +import com.junichi11.netbeans.modules.github.issues.utils.StringUtils; |
49 | 49 | import com.junichi11.netbeans.modules.github.issues.utils.UiUtils; |
50 | 50 | import java.beans.PropertyChangeListener; |
51 | 51 | import java.beans.PropertyChangeSupport; |
|
75 | 75 | import org.netbeans.modules.bugtracking.spi.IssueStatusProvider; |
76 | 76 | import org.netbeans.modules.bugtracking.spi.IssueStatusProvider.Status; |
77 | 77 | import org.openide.util.NbBundle; |
78 | | -import org.pegdown.PegDownProcessor; |
79 | 78 |
|
80 | 79 | /** |
81 | 80 | * |
@@ -338,9 +337,8 @@ public Comment editComment(Comment comment, String editedBody) { |
338 | 337 | comment.setBody(editedBody); |
339 | 338 | Comment editComment = GitHubIssueSupport.editComment(getRepository(), comment); |
340 | 339 | if (editComment != null) { |
341 | | - PegDownProcessor processor = GitHubIssues.getInstance().getPegDownProcessor(); |
342 | 340 | String body = editComment.getBody(); |
343 | | - String bodyHtml = processor.markdownToHtml(body); |
| 341 | + String bodyHtml = StringUtils.markdownToHtml(body); |
344 | 342 | comment.setBodyHtml(String.format("<html>%s</html>", bodyHtml)); // NOI18N |
345 | 343 | comment.setBody(body); |
346 | 344 | comment.setUpdatedAt(editComment.getUpdatedAt()); |
|
0 commit comments