@mdit-vue/types

Shared types definition of mdit-vue
6,739,381 221
Install
npm install @mdit-vue/types
Latest Version:3.0.2
License:MIT
Last Updated:May 8, 2026
Links: GitHub  ·  npm
Maintainer: meteorlxy

@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);

Related Packages

@md-plugins/md-plugin-image

A markdown-it plugin for handling images.

15,902 4
@md-plugins/md-plugin-inlinecode

A markdown-it plugin for handling inline code.

13,671 4
@md-plugins/md-plugin-frontmatter

A markdown-it plugin for handling frontmatter in markdown files.

13,642 4
@md-plugins/md-plugin-headers

A markdown-it plugin for handling headers (H1-H6).

13,577 4
@md-plugins/md-plugin-table

A markdown-it plugin for handling tables with custom tag and styles.

13,563 4

Version History

Version Released License
3.0.2 MIT
3.0.1 MIT
3.0.0 MIT
2.1.4 MIT
2.1.0 MIT