streaming, markdown, model selecting, and lots more
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import { unified } from 'unified';
|
||||
import remarkParse from 'remark-parse';
|
||||
import remarkGfm from 'remark-gfm';
|
||||
import remarkRehype from 'remark-rehype';
|
||||
|
||||
export default defineNuxtPlugin((nuxtApp) => {
|
||||
const remark =
|
||||
unified()
|
||||
.use(remarkParse)
|
||||
.use(remarkGfm)
|
||||
.use(remarkRehype, { allowDangerousHtml: true });
|
||||
|
||||
return {
|
||||
provide: {
|
||||
remark,
|
||||
}
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user