Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions nullboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,11 @@
transition: none;
}

.board .head .text a .mdlink,
.board .note .text a .mdlink {
text-decoration: underline;
}

@keyframes whoomp {
0% { color: inherit; }
30% { color: #888; }
Expand Down Expand Up @@ -4031,11 +4036,17 @@ <h3>Auto-backup</h3>

text = htmlEncode(text);

var hmmm = /\b(https?:\/\/[^\s]+)/mg;
text = text.replace(hmmm, function(url){
var hmmm = /\b(?<!\()(https?:\/\/[^\s]+)(?!\))/mg;
text = text.replace(hmmm, function (url) {
return '<a href="' + url + '" target=_blank>' + url + '</a>';
});

// process commonmark/markdown-style links
var mdlink = /\[([^\]]+)\]\((https?:\/\/[^\s)]+)\)/mg
text = text.replace(mdlink, function(match, link_text, url){
return '<a href="' + url + '" target=_blank class=mdlink>' + link_text + '</a>';
});

if ( NB.peek('fileLinks') )
{
var xmmm = /`(.*?)`/mg;
Expand Down