Skip to main content

Built and signed on GitHub Actions

A markdown-it plugin that parses and renders Mastodon-style #hashtags

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
100%
Published
4 months ago (0.2.0)
interface PluginOptions

Options for the plugin.

Properties

optional
linkAttributes: (handle: string) => Record<string, string>

A function to render extra attributes for a hashtag link.

optional
label: (handle: string) => string

A function to render a label for a hashtag link. spanHashAndTag by default.

Add Package

deno add jsr:@fedify/markdown-it-hashtag

Import symbol

import { type PluginOptions } from "@fedify/markdown-it-hashtag";

---- OR ----

Import directly with a jsr specifier

import { type PluginOptions } from "jsr:@fedify/markdown-it-hashtag";

Add Package

npx jsr add @fedify/markdown-it-hashtag

Import symbol

import { type PluginOptions } from "@fedify/markdown-it-hashtag";

Add Package

yarn dlx jsr add @fedify/markdown-it-hashtag

Import symbol

import { type PluginOptions } from "@fedify/markdown-it-hashtag";

Add Package

pnpm dlx jsr add @fedify/markdown-it-hashtag

Import symbol

import { type PluginOptions } from "@fedify/markdown-it-hashtag";

Add Package

bunx jsr add @fedify/markdown-it-hashtag

Import symbol

import { type PluginOptions } from "@fedify/markdown-it-hashtag";