carta/packages/plugin-slash
2024-05-11 02:20:51 +02:00
..
src fix: rename package name 2024-05-11 02:20:51 +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 fix: rename package name 2024-05-11 02:20:51 +02:00
README.md fix: rename package name 2024-05-11 02:20:51 +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 Slash Plugin

This plugin adds support for Slash commands. Install it using:

npm i @cartamd/plugin-slash

Setup

Styles

Import the default theme, or create you own:

import '@cartamd/plugin-slash/default.css';

Extension

<script lang="ts">
	import { Carta, MarkdownEditor } from '@thetadev/carta-md';
	import { slash } from '@cartamd/plugin-slash';

	const carta = new Carta({
		extensions: [slash()]
	});
</script>

<MarkdownEditor {carta} />

Documentation

Checkout the docs for examples, options and more.