aboutsummaryrefslogtreecommitdiff
path: root/lib/document-to-html.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/document-to-html.js')
-rw-r--r--lib/document-to-html.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/document-to-html.js b/lib/document-to-html.js
index eb7c8e1..bc61e34 100644
--- a/lib/document-to-html.js
+++ b/lib/document-to-html.js
@@ -247,7 +247,7 @@ function DocumentConversion(options, comments) {
return findHtmlPath(reference, htmlPaths.ignore).wrap(function() {
var comment = comments[reference.commentId];
var count = referencedComments.length + 1;
- var label = "[" + comment.authorInitials + count + "]";
+ var label = "[" + commentAuthorLabel(comment) + count + "]";
referencedComments.push({label: label, comment: comment});
// TODO: remove duplication with note references
return [
@@ -393,3 +393,7 @@ function walkHtml(nodes, callback) {
}
});
}
+
+var commentAuthorLabel = exports.commentAuthorLabel = function commentAuthorLabel(comment) {
+ return comment.authorInitials || "";
+};