.. | ||
src | ||
static | ||
.gitignore | ||
package.json | ||
README.md | ||
svelte.config.js | ||
tsconfig.json | ||
vite.config.ts |
Carta Emoji Plugin
This plugin adds support for Emojis. Install it using:
npm i @cartamd/plugin-emoji
Setup
Styles
Import the default theme, or create you own:
import '@cartamd/plugin-emoji/default.css';
Extension
<script lang="ts">
import { Carta, MarkdownEditor } from '@thetadev/carta-md';
import { emoji } from '@cartamd/plugin-emoji';
const carta = new Carta({
extensions: [emoji()]
});
</script>
<MarkdownEditor {carta} />
Documentation
Checkout the docs for examples, options and more.