mirror of
https://git.mirrors.martin98.com/https://github.com/jina-ai/reader.git
synced 2025-08-18 23:05:58 +08:00
fix: remove select element from markdown to walk around turndown performance issue
This commit is contained in:
parent
e4ef6cb0f9
commit
eb74e9c6f8
@ -151,7 +151,7 @@ export class CrawlerHost extends RPCHost {
|
||||
} as any);
|
||||
if (!options?.noRules) {
|
||||
turnDownService.addRule('remove-irrelevant', {
|
||||
filter: ['meta', 'style', 'script', 'noscript', 'link', 'textarea'],
|
||||
filter: ['meta', 'style', 'script', 'noscript', 'link', 'textarea', 'select'],
|
||||
replacement: () => ''
|
||||
});
|
||||
turnDownService.addRule('truncate-svg', {
|
||||
|
Loading…
x
Reference in New Issue
Block a user