Fix links to user IDs.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3776 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2022-01-19 02:37:39 +00:00
parent 1515525a1b
commit 83fa488b8d
5 changed files with 23 additions and 14 deletions

View File

@@ -194,14 +194,7 @@ window.addEventListener('load', function() {
return undefined;
}
},
markdown: function(md) {
if (!md) {
return;
}
var reader = new commonmark.Parser({safe: true});
var writer = new commonmark.HtmlRenderer();
return writer.render(reader.parse(md));
},
markdown: markdown,
refresh: function() {
window.parent.postMessage({refresh: true}, '*');
},