fix: Novelight Line Spacing (#1980)
This commit is contained in:
@@ -10,7 +10,7 @@ import { storage } from '@libs/storage';
|
|||||||
class Novelight implements Plugin.PagePlugin {
|
class Novelight implements Plugin.PagePlugin {
|
||||||
id = 'novelight';
|
id = 'novelight';
|
||||||
name = 'Novelight';
|
name = 'Novelight';
|
||||||
version = '1.1.3';
|
version = '1.1.4';
|
||||||
icon = 'src/en/novelight/icon.png';
|
icon = 'src/en/novelight/icon.png';
|
||||||
site = 'https://novelight.net/';
|
site = 'https://novelight.net/';
|
||||||
|
|
||||||
@@ -232,8 +232,10 @@ class Novelight implements Plugin.PagePlugin {
|
|||||||
return res.content;
|
return res.content;
|
||||||
});
|
});
|
||||||
|
|
||||||
const loadedCheerio = parseHTML(body);
|
const $ = parseHTML(body);
|
||||||
const chapterText = loadedCheerio('.' + className).html() || '';
|
$('script').remove();
|
||||||
|
$(`.${className} > *:not(br)`).after('<br>');
|
||||||
|
const chapterText = $('.' + className).html() || '';
|
||||||
|
|
||||||
return chapterText.replace(
|
return chapterText.replace(
|
||||||
/class="advertisment"/g,
|
/class="advertisment"/g,
|
||||||
|
|||||||
Reference in New Issue
Block a user