A high-performance markdown parser and renderer with Vue & React components support.
A high-performance markdown parser and renderer with Vue, React, Svelte, HTML and ANSI terminal.
npm install @comark/vue katex
# or
pnpm add @comark/vue katex
<script setup lang="ts">
import { Comark } from '@comark/vue'
import math, { Math } from '@comark/vue/plugins/math'
const chatMessage = ...
</script>
<template>
<Comark :components="{ Math }" :plugins="[math()]">{{ chatMessage }}</Comark>
</template>
npm install @comark/react katex
# or
pnpm add @comark/react katex
import { Comark } from '@comark/react'
import math, { Math } from '@comark/react/plugins/math'
function App() {
const chatMessage = ...
return <Comark components={{ Math }} plugins={[math()]}>{chatMessage}</Comark>
}
npm install @comark/svelte katex
# or
pnpm add @comark/svelte katex
<script lang="ts">
import { Comark } from '@comark/svelte'
import math, { Math } from '@comark/svelte/plugins/math'
const chatMessage = ...
</script>
<Comark markdown={chatMessage} components={{ math: Math }} plugins={[math()]} />
npm install @comark/html
# or
pnpm add @comark/html
import { render } from '@comark/html'
const chatMessage = ...
const html = await render(chatMessage)
Coding agents can install the Comark skill from the docs site:
npx skills add https://comark.dev
See Installation on comark.dev for details.
Made with β€οΈ
Published under MIT License.