Skip to content

Commit c4a2a78

Browse files
author
Farzad Hayatbakhsh
committed
DOC-2608: Attempt to fix <li> tag rendering issue
1 parent a26c44c commit c4a2a78

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

rssfeed.cjs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,14 @@ module.exports.register = function () {
3636
const $element = $(element);
3737
const linkElement = $element.find("a.xref");
3838
const [version, date] = linkElement.text().split(" - ");
39+
40+
// Remove <p> tags inside <li> tags to fix rendering issues
41+
const contentElement = $element.find(".sectionbody");
42+
contentElement.find("li > p").each((_, pElem) => {
43+
$(pElem).replaceWith($(pElem).html());
44+
});
45+
const content = contentElement.html();
46+
3947
return {
4048
title: linkElement.text(),
4149
link: `${siteLinkWithVersion}/${linkElement
@@ -44,7 +52,7 @@ module.exports.register = function () {
4452
description: `Release notes for TinyMCE ${version}`,
4553
guid: version,
4654
pubDate: new Date(date).toUTCString(),
47-
content: $element.find(".sectionbody").html(),
55+
content,
4856
};
4957
})
5058
.get();

0 commit comments

Comments
 (0)