Small codify improvements
This commit is contained in:
parent
521f75c238
commit
1717587587
@ -929,4 +929,6 @@ img.emojione {
|
|||||||
|
|
||||||
code {
|
code {
|
||||||
padding: 0px 2px;
|
padding: 0px 2px;
|
||||||
|
color: #444;
|
||||||
|
border: 1pt solid #444;
|
||||||
}
|
}
|
@ -241,7 +241,7 @@ weechat.filter('codify', function() {
|
|||||||
return function(text) {
|
return function(text) {
|
||||||
var re = /(`.+?`)/g;
|
var re = /(`.+?`)/g;
|
||||||
return text.replace(re, function(z) {
|
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;
|
return rr;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user