Skip to content

Commit

Permalink
feat: support markdown on user message (#3848)
Browse files Browse the repository at this point in the history
* feat: enable render markdown for user message

* wip: slate

* style: update style rich text editor

* chore: finalize richText editor

* chore: fix model dropdown selector

* chore: fix change format file syntax highlight

* chore: fix missing element during the test

* fix: adjust onPrompChange include on fake textarea
  • Loading branch information
urmauur authored Oct 22, 2024
1 parent b14f54e commit 9867634
Show file tree
Hide file tree
Showing 6 changed files with 438 additions and 115 deletions.
2 changes: 1 addition & 1 deletion web/containers/ModelDropdown/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ const ModelDropdown = ({
className={twMerge('relative', disabled && 'pointer-events-none')}
data-testid="model-selector"
>
<div ref={setToggle}>
<div className="flex [&>div]:w-full" ref={setToggle}>
{chatInputMode ? (
<Badge
data-testid="model-selector-badge"
Expand Down
5 changes: 4 additions & 1 deletion web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@
"ulidx": "^2.3.0",
"use-debounce": "^10.0.0",
"uuid": "^9.0.1",
"zod": "^3.22.4"
"zod": "^3.22.4",
"slate": "latest",
"slate-react": "latest",
"slate-history": "latest"
},
"devDependencies": {
"@next/eslint-plugin-next": "^14.0.1",
Expand Down
Loading

0 comments on commit 9867634

Please sign in to comment.