Skip to content

Commit f0300c1

Browse files
committed
fix syntax highlighting
1 parent a306aac commit f0300c1

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ See an example at [here](https://github.com/JavaAIDev/simple-ai-agent).
1515

1616
Features:
1717

18-
- Text input and output
18+
- Text input and output with Markdown and syntax highlighting support
1919
- Reasoning output from LLMs
2020
- Attachments: images and text files
2121

chat-agent-ui/components/assistant-ui/markdown-text.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import {CheckIcon, CopyIcon} from "lucide-react";
1414

1515
import {TooltipIconButton} from "@/components/assistant-ui/tooltip-icon-button";
1616
import {cn} from "@/lib/utils";
17+
import {SyntaxHighlighter} from "@/components/assistant-ui/shiki-highlighter";
1718

1819
const MarkdownTextImpl = () => {
1920
return (
@@ -68,6 +69,7 @@ const useCopyToClipboard = ({
6869
};
6970

7071
const defaultComponents = memoizeMarkdownComponents({
72+
SyntaxHighlighter: SyntaxHighlighter,
7173
h1: ({className, ...props}) => (
7274
<h1
7375
className={cn(

chat-agent-ui/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>com.javaaidev.chatagentui</groupId>
88
<artifactId>chat-agent-ui-parent</artifactId>
9-
<version>0.14.0</version>
9+
<version>0.15.0</version>
1010
</parent>
1111

1212
<artifactId>chat-agent-ui</artifactId>

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<modelVersion>4.0.0</modelVersion>
66
<groupId>com.javaaidev.chatagentui</groupId>
77
<artifactId>chat-agent-ui-parent</artifactId>
8-
<version>0.14.0</version>
8+
<version>0.15.0</version>
99
<packaging>pom</packaging>
1010
<name>Chat Agent UI :: Parent</name>
1111
<description>Chat Agent UI</description>

0 commit comments

Comments
 (0)