16,874
个编辑
LLWiki正在建设中,欢迎加入我们!
小 |
|||
$content.find( '.mw-highlight > pre' ).last().html(function() {
const ele = $(this);
if (ele.text().startsWith( '--
const text = ele.html(),
i = text.lastIndexOf( '<!--' );
return (text.slice(0, i) + text.slice(i + 7)).replace(/-->/, '');
}
if (ele.text().startsWith( '
ele.children( '.nt:first
const text = ele.html(),
i = text.lastIndexOf( '<' );
|