feat: improve wikipedia parser

This commit is contained in:
Adam Pash 2016-09-16 13:59:05 -04:00
parent 1597fc79c2
commit 7ade83692a
3 changed files with 3 additions and 2 deletions

2
dist/mercury.js vendored
View File

@ -539,7 +539,7 @@ var WikipediaExtractor = {
}, },
// Selectors to remove from the extracted content // Selectors to remove from the extracted content
clean: ['.mw-editsection', 'figure tr, figure td, figure tbody', '#toc'] clean: ['.mw-editsection', 'figure tr, figure td, figure tbody', '#toc', '.navbox']
}, },

2
dist/mercury.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -25,6 +25,7 @@ const WikipediaExtractor = {
'.mw-editsection', '.mw-editsection',
'figure tr, figure td, figure tbody', 'figure tr, figure td, figure tbody',
'#toc', '#toc',
'.navbox',
], ],
}, },