fix: everything changes & xyplorer what's new without newlines (#6424)
This commit is contained in:
parent
afcc8ffef4
commit
120248c775
|
|
@ -15,7 +15,7 @@ module.exports = async (ctx) => {
|
|||
item = item.indexOf('\n') === 0 ? item.substr(2, item.length - 2) : item;
|
||||
|
||||
const title = item.split('\n')[0].split(':');
|
||||
const description = item.split(title[1])[1].replace(/\t/g, '<li>').replace(/\n/g, '</li>');
|
||||
const description = `<ul>${item.split(title[1])[1].replace(/\t/g, '<li>').replace(/\n/g, '</li>')}</ul>`;
|
||||
|
||||
return {
|
||||
description,
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ module.exports = async (ctx) => {
|
|||
item = $(item);
|
||||
return {
|
||||
link: currentUrl,
|
||||
description: item.html(),
|
||||
description: `<ul>${item.html()}</ul>`,
|
||||
title: item.prev().prev().text(),
|
||||
pubDate: date(item.prev().text().replace('released ', '')),
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue