Skip to content

markdown-it plugin for mention syntax

License

Notifications You must be signed in to change notification settings

quartzy/markdown-it-mentions

Repository files navigation

@quartzy/markdown-it-mentions

Latest Version on NPM Software License Build Status Total Downloads

A plugin for markdown-it that turns:

@[Freddie Mercury](mention://user/48249279)

into:

<span class="mention" data-type="user" data-id="48249279">Freddie Mercury</span>

Installation

yarn add @quartzy/markdown-it-mentions

Usage

import markdownitMentions from '@quartzy/markdown-it-mentions';

const md = markdownit().use(markdownitMentions);

Development

# Run tests
yarn test

# Build distributable
yarn build

# Build and watch for changes
yarn watch

Credits

License

The Apache License, v2.0. Please see License File for more information.

About

markdown-it plugin for mention syntax

Resources

License

Stars

Watchers

Forks

Packages

No packages published