2.0.0 • Published 9 months ago

@svelte-put/preprocess-auto-slug v2.0.0

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

@svelte-put/preprocess-auto-slug

npm.badge bundlephobia.badge docs.badge

Svelte preprocessor for adding id and anchor to nodes

svelte-put

This package is part of the @svelte-put family. For contributing guideline and more, refer to its readme.

Usage & Documentation

See the dedicated documentation page here.

Quick Start

<!-- input.svelte -->
<h2>Quick start</h2>
// svelte.config.js
import autoSlug from '@svelte-put/preprocess-auto-slug';

/** @type {import('@sveltejs/kit').Config} */
const config = {
  preprocess: [autoSlug()],
};

export default config;
<!-- output.html -->
<h2 id="quick-start">
  <a href="#quick-start" aria-hidden="true" tabindex="-1">#</a>
  Quick Start
</h2>

Changelog

2.0.0

9 months ago

2.0.0-next.5

9 months ago

2.0.0-next.4

11 months ago

2.0.0-next.2

1 year ago

2.0.0-next.3

12 months ago

2.0.0-next.0

1 year ago

2.0.0-next.1

1 year ago

1.0.1

2 years ago

1.0.0

2 years ago

0.3.3

2 years ago

0.3.0

2 years ago

0.3.2

2 years ago

0.3.1

2 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago