Skip to content

MDC एक्सट्रैक्टर

MDC (Markdown कंपोनेंट्स) सिंटैक्स से क्लासेस निकालने का समर्थन करता है।

इंस्टॉलेशन

bash
pnpm add -D @unocss/extractor-mdc
bash
yarn add -D @unocss/extractor-mdc
bash
npm install -D @unocss/extractor-mdc
bash
bun add -D @unocss/extractor-mdc
ts
import extractorMdc from '@unocss/extractor-mdc'
import { defineConfig } from 'unocss'

export default defineConfig({
  extractors: [
    extractorMdc(),
  ],
})

यह .md .mdc और .markdown फ़ाइलों पर निष्कर्षण लागू करेगा, क्लासेस के इनलाइन प्रॉप्स उपयोग को निकालने के लिए। उदाहरण के लिए

md
# Title{.text-2xl.font-bold}

Hello [World]{.text-blue-500}

![image](/image.png){.w-32.h-32}

text-2xl, font-bold, text-blue-500, w-32, h-32 क्लासेस निकाले जाएंगे।

Released under the MIT License.