Remove hr and color
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Michel Roux 2021-08-30 15:40:57 +02:00
parent 5de77c85c4
commit 4cae3ce1da
3 changed files with 5 additions and 3 deletions

View File

@ -30,6 +30,7 @@ const fetchPage = async (url) => {
const title = html('h1.entry-title').text()
const content = html('div.entry-content')
content.find('a').remove()
content.find('hr').remove()
content.find('div.tiled-gallery').remove()
const data = content.html()

View File

@ -10,7 +10,7 @@
"license": "ISC",
"dependencies": {
"cheerio": "1.0.0-rc.10",
"epub-gen": "git+https://github.com/Xefir/epub-gen.git",
"epub-gen-funstory": "0.1.3",
"node-fetch": "2.6.1"
},
"devDependencies": {

View File

@ -593,9 +593,10 @@ entities@^2.0.0:
resolved "https://registry.yarnpkg.com/entities/-/entities-2.2.0.tgz#098dc90ebb83d8dffa089d55256b351d34c4da55"
integrity sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==
"epub-gen@git+https://github.com/Xefir/epub-gen.git":
epub-gen-funstory@0.1.3:
version "0.1.3"
resolved "git+https://github.com/Xefir/epub-gen.git#01c86b48d9c347710b4c12a8cd74e7a634dbdcd4"
resolved "https://registry.yarnpkg.com/epub-gen-funstory/-/epub-gen-funstory-0.1.3.tgz#16d818f402880d8d5bf9c5a590c5aaccf3c7c64e"
integrity sha512-80ea9hd4+LHQkiUOrR87oGR62k8oRpT3Sxjam5CkMle+CATqiXLpNQoTRNdSfmz6J1CENTq4GCXNFNnlNVTiDw==
dependencies:
archiver "^3.0.0"
cheerio "^0.22.0"