@mdit-vue/types
Shared types definition of mdit-vue
Last updated 7 months ago by meteorlxy .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @mdit-vue/types 
SYNC missed versions from official npm registry.

@mdit-vue/types

npm

Shared types definition of mdit-vue.

Install

npm i @mdit-vue/types

Usage

Add more properties to env via TypeScript module augmentation:

declare module '@mdit-vue/types' {
  interface MarkdownItEnv {
    foo?: string[];
  }
}
import type { MarkdownItEnv } from '@mdit-vue/types';
import MarkdownIt from 'markdown-it';

const md = MarkdownIt({ html: true });
const env: MarkdownItEnv = {};
const rendered = md.render('raw markdown text', env);

Current Tags

  • 2.1.0                                ...           latest (7 months ago)

12 Versions

  • 2.1.0                                ...           7 months ago
  • 2.0.0                                ...           a year ago
  • 1.0.0                                ...           a year ago
  • 0.12.0                                ...           2 years ago
  • 0.11.0                                ...           2 years ago
  • 0.10.0                                ...           2 years ago
  • 0.9.2                                ...           2 years ago
  • 0.9.0                                ...           2 years ago
  • 0.8.0                                ...           2 years ago
  • 0.7.1                                ...           2 years ago
  • 0.7.0                                ...           2 years ago
  • 0.6.0                                ...           2 years ago
Maintainers (1)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None

© 2010 - cnpmjs.org x YWFE | Home | YWFE