소스 검색

include syntax highlighted code blocks

MarkusRost 4 년 전
부모
커밋
ed732d424b
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      functions/parse_page.js

+ 2 - 1
functions/parse_page.js

@@ -57,6 +57,7 @@ const removeClasses = [
 const removeClassesExceptions = [
 const removeClassesExceptions = [
 	'div.main-page-tag-lcs',
 	'div.main-page-tag-lcs',
 	'div.lcs-container',
 	'div.lcs-container',
+	'div.mw-highlight',
 	'div.poem',
 	'div.poem',
 	'div.treeview',
 	'div.treeview',
 	'div.wikibase-entityview',
 	'div.wikibase-entityview',
@@ -385,4 +386,4 @@ function parse_page(lang, msg, content, embed, wiki, reaction, {title, contentmo
 	} );
 	} );
 }
 }
 
 
-module.exports = parse_page;
+module.exports = parse_page;