Small codify improvements

This commit is contained in:
Serafeim Papastefanos 2019-07-04 14:10:41 +03:00
parent 521f75c238
commit 1717587587
2 changed files with 3 additions and 1 deletions

View File

@ -929,4 +929,6 @@ img.emojione {
code {
padding: 0px 2px;
color: #444;
border: 1pt solid #444;
}

View File

@ -241,7 +241,7 @@ weechat.filter('codify', function() {
return function(text) {
var re = /(`.+?`)/g;
return text.replace(re, function(z) {
var rr = '<code>' + z.slice(1, z.length-1) + '</code>';
var rr = '<span class="hidden-bracket">`</span><code>' + z.slice(1, z.length-1) + '</code><span class="hidden-bracket">`</span>';
return rr;
});
};