JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 94734
  • Score
    100M100P100Q167771F
  • License MIT

Shared types definition of mdit-vue

Package Exports

  • @mdit-vue/types

Readme

@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 MarkdownIt from 'markdown-it';
import type { MarkdownItEnv } from '@mdit-vue/types';

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