npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@diplodoc/quote-link-extension

v0.1.6

Published

Quote link extension for Diplodoc platform

Readme

Diplodoc quote link extension

NPM version Quality Gate Status Coverage Maintainability Rating Reliability Rating Security Rating

Extension for the Diplodoc platform that adds quote link blocks (Markdown blockquotes with data-quotelink).

Installation

npm install @diplodoc/quote-link-extension

Contents

Quickstart

Attach the plugin to the transformer:

import quoteLinkExtension from '@diplodoc/quote-link-extension';
import transform from '@diplodoc/transform';

const {result} = await transform(
  `
> [link title](http://example.ru){data-quotelink="true"}
>
> link content
`,
  {
    plugins: [quoteLinkExtension.transform({bundle: false})],
  },
);

Prepared runtime

It is necessary to add runtime scripts to make quote links interactive on your page. You can add assets files which were generated by the MarkdownIt transform plugin.

<html>
  <head>
    <!-- Read more about '_assets/quote-link-extension.js' and '_assets/quote-link-extension.css' in 'Transform plugin' section -->
    <script src="_assets/quote-link-extension.js" async></script>
    <link rel="stylesheet" href="_assets/quote-link-extension.css" />
  </head>
  <body>
    ${result.html}
  </body>
</html>

Or you can just include runtime's source code in your bundle.

import '@diplodoc/quote-link-extension/runtime';
import '@diplodoc/quote-link-extension/runtime/styles.css';

Public CSS variables

  • --yfm-quote-link-background — background color of the quote link. Default: rgb(242, 242, 242). For dark theme: rgb(56, 52, 56).
  • --yfm-quote-link-background-hover — background on hover. Default: rgba(0, 0, 0, 0.05). For dark theme: rgba(255, 255, 255, 0.1).

MarkdownIt transform plugin

Plugin for @diplodoc/transform package.

A blockquote is treated as a quote link when its first paragraph starts with a link that has the data-quotelink attribute (in HTML) or {data-quotelink} / {data-quotelink="true"} in YFM markup. The plugin then sets the block’s token type and CSS class (yfm-quote-link), and adds script/style paths to the transform result so the runtime can be loaded.

Options:

  • runtime — string or { script, style }. Paths for script and CSS in the transform result. Default: _assets/quote-link-extension.js / _assets/quote-link-extension.css.

  • bundle — copy bundled runtime to output. Target directory: <transformer output>/<plugin runtime option>. Default: true.

Documentation

  • For AI agents and developers — see AGENTS.md for setup, scripts, and contribution notes.