mirror of
https://github.com/postlight/mercury-parser
synced 2024-11-18 21:28:22 +00:00
feat: improve wikipedia parser
This commit is contained in:
parent
1597fc79c2
commit
7ade83692a
2
dist/mercury.js
vendored
2
dist/mercury.js
vendored
@ -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
2
dist/mercury.js.map
vendored
File diff suppressed because one or more lines are too long
@ -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',
|
||||||
],
|
],
|
||||||
|
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user