mirror of
https://git.wownero.com/wownero/wownero-funding-system.git
synced 2024-08-15 00:53:45 +00:00
Support line breaks in comments + CSS changes
This commit is contained in:
parent
e3252d0071
commit
a6ce535b4e
7 changed files with 44 additions and 16 deletions
|
@ -243,9 +243,6 @@
|
|||
// convert images to <img>
|
||||
let html = obj.html();
|
||||
let uid = obj.attr('data-id');
|
||||
if(uid == 30){
|
||||
debugger;
|
||||
}
|
||||
|
||||
var matches = html.match(regexp_imgur) || [];
|
||||
matches = matches.concat(html.match(regexp_imgflip));
|
||||
|
@ -253,7 +250,7 @@
|
|||
matches.filter(function (value, index, self) {
|
||||
return self.indexOf(value) === index && typeof value === 'string';
|
||||
}).forEach(function (obj) {
|
||||
html = html.replace(new RegExp(obj, 'g'), `<br><img src="${obj}"/></a><br>`)
|
||||
html = html.replace(new RegExp(obj, 'g'), `<img src="${obj}"/></a>`)
|
||||
});
|
||||
}
|
||||
obj.html(html);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue