fix(route/theinitium): Fix wp-block html (#17460)
This commit is contained in:
parent
d64c7620f9
commit
6451863ee9
|
|
@ -131,6 +131,10 @@ async function handler(ctx) {
|
|||
});
|
||||
const article = $('.pp-article__body');
|
||||
article.find('.block-related-articles').remove();
|
||||
article.find('figure.wp-block-pullquote').children().unwrap();
|
||||
article.find('div.block-explanation-note').wrapInner('<blockquote></blockquote>');
|
||||
article.find('div.wp-block-tcc-author-note').wrapInner('<em></em>').after('<hr>');
|
||||
article.find('p.has-small-font-size').wrapInner('<small></small>');
|
||||
item.description = art(path.join(__dirname, 'templates/description.art'), {
|
||||
standfirst: $('.pp-header-group__standfirst').html(),
|
||||
coverImage: $('.pp-media__image').attr('src'),
|
||||
|
|
|
|||
Loading…
Reference in New Issue