mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-27 00:17:31 +00:00
fix: upload file (#2992)
* fix: upload file * chore: remove wasm, support html image parse * chore: adjust * chore: move base64match function into htmlstr2md
This commit is contained in:
@@ -5,9 +5,10 @@ import { html2md } from '../../htmlStr2Md/utils';
|
||||
export const readHtmlRawText = async (params: ReadRawTextByBuffer): Promise<ReadFileResponse> => {
|
||||
const { rawText: html } = readFileRawText(params);
|
||||
|
||||
const rawText = html2md(html);
|
||||
const { rawText, imageList } = html2md(html);
|
||||
|
||||
return {
|
||||
rawText
|
||||
rawText,
|
||||
imageList
|
||||
};
|
||||
};
|
||||
|
Reference in New Issue
Block a user