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