feat: add better provider support, icons, regen, and a lot more
This commit is contained in:
@@ -2,13 +2,17 @@ import { unified } from 'unified';
|
||||
import remarkParse from 'remark-parse';
|
||||
import remarkGfm from 'remark-gfm';
|
||||
import remarkRehype from 'remark-rehype';
|
||||
import remarkMath from 'remark-math';
|
||||
import rehypeKatex from 'rehype-katex';
|
||||
|
||||
export default defineNuxtPlugin((nuxtApp) => {
|
||||
const remark =
|
||||
unified()
|
||||
.use(remarkParse)
|
||||
.use(remarkGfm)
|
||||
.use(remarkRehype, { allowDangerousHtml: true });
|
||||
.use(remarkMath, { singleDollarTextMath: false })
|
||||
.use(remarkRehype, { allowDangerousHtml: true })
|
||||
.use(rehypeKatex);
|
||||
|
||||
return {
|
||||
provide: {
|
||||
|
||||
Reference in New Issue
Block a user