mirror of
https://github.com/labring/FastGPT.git
synced 2025-12-27 05:32:47 +00:00
Some checks failed
Build FastGPT images in Personal warehouse / build-fastgpt-images (push) Waiting to run
Deploy image by kubeconfig / build-fastgpt-docs-images (push) Has been cancelled
Deploy image to vercel / deploy-production (push) Has been cancelled
Deploy image by kubeconfig / update-docs-image (push) Has been cancelled
* perf: worker pool * perf: worker register * perf: worker controller * perf: system plugin worker * perf: system plugin worker * perf: worker * perf: worker * worker timeout * perf: copy icon
14 lines
379 B
TypeScript
14 lines
379 B
TypeScript
import { ReadRawTextByBuffer, ReadFileResponse } from '../type';
|
|
import { readFileRawText } from './rawText';
|
|
import { html2md } from '../../htmlStr2Md/utils';
|
|
|
|
export const readHtmlRawText = async (params: ReadRawTextByBuffer): Promise<ReadFileResponse> => {
|
|
const { rawText: html } = readFileRawText(params);
|
|
|
|
const rawText = html2md(html);
|
|
|
|
return {
|
|
rawText
|
|
};
|
|
};
|