Use react markdown as default, cleanup dependencies

This commit is contained in:
Hyunggyu Jang 2023-03-26 23:02:57 +09:00
parent e8e512a451
commit 40e23b013a
18 changed files with 27 additions and 838 deletions

View file

@ -38,14 +38,6 @@ export const languages = [
'pascal'
];
export const wrapperRegex = {
codeRegex: /(```[\s\S]*?```)/g,
inLineRegex: /(`[^`]+?`)/g,
markupRegex: /(`[^`]+?`)/g,
languageMatch: /^```(\w+)/,
newLineMatch: /^```(\n+)/
};
export const getIconOfModel = ({ size=30, sender, isCreatedByUser, searchResult, model, chatGptLabel, error, ...props }) => {
// 'ai' is used as 'model' is not accurate for search results
let ai = searchResult ? sender : model;