Merge branch 'master' into new-note

This commit is contained in:
Thomas Hervey
2018-07-19 18:38:26 -04:00
committed by GitHub
17 changed files with 458 additions and 68 deletions
+2 -1
View File
@@ -66,7 +66,7 @@ export function uiNoteComments() {
mainEnter
.append('div')
.attr('class', 'comment-text')
.text(function(d) { return d.text; });
.html(function(d) { return d.html; });
comments
.call(replaceAvatars);
@@ -101,6 +101,7 @@ export function uiNoteComments() {
if (!s) return null;
var detected = utilDetect();
var options = { day: 'numeric', month: 'short', year: 'numeric' };
s = s.replace(/-/g, '/'); // fix browser-specific Date() issues
var d = new Date(s);
if (isNaN(d.getTime())) return null;
return d.toLocaleDateString(detected.locale, options);