carta/packages/plugin-emoji
BearToCode 342c8d24d0 feat: use unified+rehype for parsing markdown
`marked` has been replaced with a more modern setup involving Unified JS, Rehype and various
plugins.

BREAKING CHANGE: Replaced `marked` with `unified` and `rehype`
2024-04-12 08:24:46 +02:00
..
src feat: use unified+rehype for parsing markdown 2024-04-12 08:24:46 +02:00
static convert plugins vite packages to sveltekit 2023-05-26 20:03:53 +02:00
.gitignore convert plugins vite packages to sveltekit 2023-05-26 20:03:53 +02:00
package.json feat: use unified+rehype for parsing markdown 2024-04-12 08:24:46 +02:00
README.md refactor: remove verbose prefixes 2024-04-12 08:24:37 +02:00
svelte.config.js build: update dev dependencies 2024-03-18 19:41:22 +01:00
tsconfig.json convert plugins vite packages to sveltekit 2023-05-26 20:03:53 +02:00
vite.config.ts convert plugins vite packages to sveltekit 2023-05-26 20:03:53 +02:00

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 '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.