diff --git a/src/runtime/components/MDC.vue b/src/runtime/components/MDC.vue index e13a6dc2..bafc04e2 100644 --- a/src/runtime/components/MDC.vue +++ b/src/runtime/components/MDC.vue @@ -21,7 +21,7 @@ import { hash } from 'ohash' import { useAsyncData } from 'nuxt/app' import { watch, computed, type PropType } from 'vue' -import type { MDCParseOptions } from '@nuxtjs/mdc' +import type { MDCParseOptions } from '../types/config' import { parseMarkdown } from '../parser' const props = defineProps({ diff --git a/src/runtime/components/MDCRenderer.vue b/src/runtime/components/MDCRenderer.vue index 000118b0..8ca3666a 100644 --- a/src/runtime/components/MDCRenderer.vue +++ b/src/runtime/components/MDCRenderer.vue @@ -4,7 +4,7 @@ import destr from 'destr' import { kebabCase, pascalCase } from 'scule' import { find, html } from 'property-information' import type { VNode, ConcreteComponent, PropType, DefineComponent } from 'vue' -import type { MDCElement, MDCNode, MDCRoot, MDCData, MDCRenderOptions } from '@nuxtjs/mdc' +import type { MDCElement, MDCNode, MDCRoot, MDCData, MDCRenderOptions } from '../types/renderer' import htmlTags from '../parser/utils/html-tags-list' import { flatUnwrap } from '../utils/node' import { pick } from '../utils' diff --git a/src/runtime/highlighter/rehype-nuxt.ts b/src/runtime/highlighter/rehype-nuxt.ts index 27ae2f11..e50137ec 100644 --- a/src/runtime/highlighter/rehype-nuxt.ts +++ b/src/runtime/highlighter/rehype-nuxt.ts @@ -1,4 +1,4 @@ -import type { HighlightResult, RehypeHighlightOption } from '@nuxtjs/mdc' +import type { HighlightResult, RehypeHighlightOption } from '../types/highlighter' import { rehypeHighlight as rehypeHighlightUniversal } from './rehype' const defaults: RehypeHighlightOption = { diff --git a/src/runtime/parser/compiler.ts b/src/runtime/parser/compiler.ts index 0131c0b1..bc5391e2 100644 --- a/src/runtime/parser/compiler.ts +++ b/src/runtime/parser/compiler.ts @@ -1,6 +1,6 @@ import { toString } from 'hast-util-to-string' import Slugger from 'github-slugger' -import type { RootContent, Root, MDCNode, MDCParseOptions, MDCRoot } from '@nuxtjs/mdc' +import type { RootContent, Root, MDCNode, MDCParseOptions, MDCRoot } from '../types/parser' import { validateProps } from './utils/props' export function compileHast(this: any, options: MDCParseOptions = {}) { diff --git a/src/runtime/stringify/index.ts b/src/runtime/stringify/index.ts index 6fa92ffe..8f61880d 100644 --- a/src/runtime/stringify/index.ts +++ b/src/runtime/stringify/index.ts @@ -2,7 +2,7 @@ import { unified, type Processor } from 'unified' import gfm from 'remark-gfm' import mdc, { stringifyFrontMatter } from 'remark-mdc' import stringify from 'remark-stringify' -import type { MDCStringifyOptions, MDCRoot } from '@nuxtjs/mdc' +import type { MDCStringifyOptions, MDCRoot } from '../types/stringify' import { mdcRemark } from './mdc-remark' export function createStringifyProcessor(options: MDCStringifyOptions = {}) {