@cartamd/plugin-slash
v4.1.2
Published
This plugin adds support for **Slash** commands. Install it using:
Downloads
730
Maintainers
Readme
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 '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.