20 lines
363 B
TypeScript
20 lines
363 B
TypeScript
import { PluginSimple } from 'markdown-it';
|
|
|
|
/**
|
|
* Get markdown page title info
|
|
*
|
|
* Extract it into env
|
|
*/
|
|
declare const titlePlugin: PluginSimple;
|
|
|
|
declare module '@mdit-vue/types' {
|
|
interface MarkdownItEnv {
|
|
/**
|
|
* The title that extracted by `@mdit-vue/plugin-title`
|
|
*/
|
|
title?: string;
|
|
}
|
|
}
|
|
|
|
export { titlePlugin };
|