@mdit-vue/types
@mdit-vue/types
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-frontmatter
A markdown-it plugin for handling frontmatter in markdown files.
13,642
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 | |
| 2.0.0 | MIT | |
| 1.0.0 | MIT | |
| 0.12.0 | MIT | |
| 0.11.0 | MIT | |
| 0.10.0 | MIT | |
| 0.9.2 | MIT | |
| 0.9.0 | MIT | |
| 0.8.0 | MIT | |
| 0.7.1 | MIT | |
| 0.7.0 | MIT | |
| 0.6.0 | MIT |