UNPKG

vue-markdown-shiki

Version:

A Vue 3 component library that provides integration with Shiki and Markdown-it.

36 lines (35 loc) 1 kB
import { MarkdownSfcBlocks } from '@mdit-vue/plugin-sfc'; import { Header } from './shared/index'; export interface MarkdownEnv { /** * The raw Markdown content without frontmatter */ content?: string; /** * The excerpt that extracted by `@mdit-vue/plugin-frontmatter` * * - Would be the rendered HTML when `renderExcerpt` is enabled * - Would be the raw Markdown when `renderExcerpt` is disabled */ excerpt?: string; /** * The frontmatter that extracted by `@mdit-vue/plugin-frontmatter` */ frontmatter?: Record<string, unknown>; /** * The headers that extracted by `@mdit-vue/plugin-headers` */ headers?: Header[]; /** * SFC blocks that extracted by `@mdit-vue/plugin-sfc` */ sfcBlocks?: MarkdownSfcBlocks; /** * The title that extracted by `@mdit-vue/plugin-title` */ title?: string; path: string; relativePath: string; cleanUrls: boolean; links?: string[]; }