mirror of
https://git.mirrors.martin98.com/https://github.com/jina-ai/reader.git
synced 2025-08-19 06:45:53 +08:00
gfm
This commit is contained in:
parent
9d0d54e511
commit
5cfb78b275
@ -48,6 +48,7 @@
|
|||||||
"stripe": "^11.11.0",
|
"stripe": "^11.11.0",
|
||||||
"tiktoken": "^1.0.10",
|
"tiktoken": "^1.0.10",
|
||||||
"turndown": "^7.1.3",
|
"turndown": "^7.1.3",
|
||||||
|
"turndown-plugin-gfm": "^1.0.2",
|
||||||
"undici": "^5.24.0"
|
"undici": "^5.24.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
@ -11,7 +11,7 @@ import { Request, Response } from 'express';
|
|||||||
export class CrawlerHost extends RPCHost {
|
export class CrawlerHost extends RPCHost {
|
||||||
logger = this.globalLogger.child({ service: this.constructor.name });
|
logger = this.globalLogger.child({ service: this.constructor.name });
|
||||||
|
|
||||||
turnDownService = new TurnDownService();
|
turnDownService = new TurnDownService().use(require('turndown-plugin-gfm'));
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
protected globalLogger: Logger,
|
protected globalLogger: Logger,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user