Skip to content

Commit ee24713

Browse files
authored
refactor(chat): Moved markdown renderer and exported config type (#1877)
1 parent 312dc48 commit ee24713

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/chat/extras/markdown-renderer.ts renamed to src/extras/chat-markdown-renderer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { unsafeHTML } from 'lit/directives/unsafe-html.js';
33
import { Marked } from 'marked';
44
import markedShiki from 'marked-shiki';
55
import { bundledThemes, createHighlighter } from 'shiki/bundle/web';
6-
import type { IgcChatMessage } from '../types.js';
6+
import type { IgcChatMessage } from '../components/chat/types.js';
77

88
const DEFAULT_LANGUAGES = ['javascript', 'typescript', 'html', 'css'];
99
const DEFAULT_THEME = {

src/extras/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export { createMarkdownRenderer } from '../components/chat/extras/markdown-renderer.js';
1+
export * from './chat-markdown-renderer.js';

0 commit comments

Comments
 (0)