diff --git a/src/components/chat/extras/markdown-renderer.ts b/src/extras/chat-markdown-renderer.ts similarity index 97% rename from src/components/chat/extras/markdown-renderer.ts rename to src/extras/chat-markdown-renderer.ts index d03fbc0fe..6623c57f3 100644 --- a/src/components/chat/extras/markdown-renderer.ts +++ b/src/extras/chat-markdown-renderer.ts @@ -3,7 +3,7 @@ import { unsafeHTML } from 'lit/directives/unsafe-html.js'; import { Marked } from 'marked'; import markedShiki from 'marked-shiki'; import { bundledThemes, createHighlighter } from 'shiki/bundle/web'; -import type { IgcChatMessage } from '../types.js'; +import type { IgcChatMessage } from '../components/chat/types.js'; const DEFAULT_LANGUAGES = ['javascript', 'typescript', 'html', 'css']; const DEFAULT_THEME = { diff --git a/src/extras/index.ts b/src/extras/index.ts index a3bc0e298..bbcf52e3d 100644 --- a/src/extras/index.ts +++ b/src/extras/index.ts @@ -1 +1 @@ -export { createMarkdownRenderer } from '../components/chat/extras/markdown-renderer.js'; +export * from './chat-markdown-renderer.js';