Small codify improvements

update-travis
Serafeim Papastefanos 6 years ago
parent 521f75c238
commit 1717587587
  1. 2
      css/glowingbear.css
  2. 2
      js/filters.js

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

@ -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;
});
};

Loading…
Cancel
Save