2.1.1 • Published 9 months ago

@cartamd/plugin-anchor v2.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

Carta Anchor Plugin

This plugin adds id attributes and permalinks to headings. Install it using:

npm i @cartamd/plugin-anchor

Setup

Styles

Import the default theme, or create you own:

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

Extension

<script>
	import { Carta, MarkdownEditor } from 'carta-md';
	import { anchor } from '@cartamd/plugin-anchor';

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

<MarkdownEditor {carta} />

Documentation

Checkout the docs for examples, options and more.

2.1.1

9 months ago

2.1.0

9 months ago

2.0.3

1 year ago

2.0.2

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

1.0.0

1 year ago

0.0.0

1 year ago