(reference, messages, options)
| 398 | } |
| 399 | |
| 400 | function convertCommentReference(reference, messages, options) { |
| 401 | return findHtmlPath(reference, htmlPaths.ignore).wrap(function() { |
| 402 | var comment = comments[reference.commentId]; |
| 403 | var count = referencedComments.length + 1; |
| 404 | var label = "[" + commentAuthorLabel(comment) + count + "]"; |
| 405 | referencedComments.push({label: label, comment: comment}); |
| 406 | // TODO: remove duplication with note references |
| 407 | return [ |
| 408 | Html.freshElement("a", { |
| 409 | href: "#" + referentHtmlId("comment", reference.commentId), |
| 410 | id: referenceHtmlId("comment", reference.commentId) |
| 411 | }, [Html.text(label)]) |
| 412 | ]; |
| 413 | }); |
| 414 | } |
| 415 | |
| 416 | function convertComment(referencedComment, messages, options) { |
| 417 | // TODO: remove duplication with note references |
nothing calls this directly
no test coverage detected