rspress-plugin-mention-github
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

Rspress Plugin Mention Github

Install

npm i rspress-plugin-mention-github -D

Config

  • Import css
@import url('rspress-plugin-mention-github/style.css');
  • Add plugin to rspress.config.ts
import * as path from 'path';
import { defineConfig } from 'rspress/config';

import rspressPlugMentionGithub from 'rspress-plugin-mention-github';

export default defineConfig({
  plugins: [
    rspressPlugMentionGithub()],
});

Write markdown

  • Mention github user
{@web-infra-dev}
  • or pass option link map
{Web Infra Dev}
import * as path from 'path';
import { defineConfig } from 'rspress/config';

import rspressPlugMentionGithub from 'rspress-plugin-mention-github';

export default defineConfig({
  plugins: [
    rspressPlugMentionGithub({
      'Web Infra Dev': 'https://github.com/web-infra-dev',
      'Rspack': {
        link: 'https://github.com/web-infra-dev/rspack',
        imageUrl: 'https://assets.rspack.dev/rspack/rspack-logo.svg'
      },
    })],
});

Readme

Keywords

none

Package Sidebar

Install

npm i rspress-plugin-mention-github

Weekly Downloads

0

Version

0.0.1

License

MIT

Unpacked Size

25 kB

Total Files

7

Last publish

Collaborators

  • hunghg255