fix: everything changes & xyplorer what's new without newlines (#6424)

This commit is contained in:
Ethan Shen 2020-12-13 00:30:40 +08:00 committed by GitHub
parent afcc8ffef4
commit 120248c775
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

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