File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff 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 ( ) ;
You can’t perform that action at this time.
0 commit comments