mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-08 05:59:00 +08:00
fix: 解决infoQ全文获取异常 (#5065)
This commit is contained in:
@@ -50,9 +50,13 @@ const parseToSimpleTexts = (content) =>
|
|||||||
.join(''),
|
.join(''),
|
||||||
text: () => i.text,
|
text: () => i.text,
|
||||||
heading: () => {
|
heading: () => {
|
||||||
const level = i.attrs.level;
|
if (i.content) {
|
||||||
const text = parseToSimpleText(i.content);
|
const level = i.attrs.level;
|
||||||
return `<h${level}>${text}</h${level}>`;
|
const text = parseToSimpleText(i.content);
|
||||||
|
return `<h${level}>${text}</h${level}>`;
|
||||||
|
} else {
|
||||||
|
return '';
|
||||||
|
}
|
||||||
},
|
},
|
||||||
blockquote: () => {
|
blockquote: () => {
|
||||||
const text = parseToSimpleText(i.content);
|
const text = parseToSimpleText(i.content);
|
||||||
|
|||||||
Reference in New Issue
Block a user