0.0.2-28214512.e5770b3 • Published 2 years ago
nuxt-mdc-edge v0.0.2-28214512.e5770b3
Nuxt MDC
MDC supercharges regular Markdown to write documents interacting deeply with any Vue component.
Install
# Using Yarn
yarn add --dev remark-mdc
# Using NPM
npm install --save-dev remark-mdcThen, add nuxt-mdc to the modules section of your nuxt.config.ts
export default defineNuxtConfig({
modules: ['nuxt-mdc']
})Use
Parse MDC content in any environment:
import { parseMarkdown } from 'nuxt-mdc/runtime'
async function main(mdc: string) {
const ast = await parseMarkdown(mdc)
// Do your magic with parsed AST tree
return ast
}Render MDC content with <MDC> component:
<template>
<MDC :value="md" tag="article" />
</template>
<script setup lang="ts">
const md = `
::alert
Hello MDC
::
`
</script>💻 Development
- Clone repository
- Install dependencies using
pnpm install - Prepare using
pnpm dev:prepare - Try playground using
pnpm dev
License
MIT - Made with 💚
0.0.2-28214512.e5770b3
2 years ago
0.0.2-28213126.b93aa88
2 years ago
0.0.2-28211865.6e34564
2 years ago
0.0.2-28192915.1a9aeb0
2 years ago
0.0.2-28185536.2ce38f3
2 years ago
0.0.2-28174420.1209210
2 years ago
0.0.2-28173425.fe0b736
2 years ago
0.0.2-28170089.b3969dd
2 years ago
0.0.2-28170006.46e0666
2 years ago
0.0.2-28162747.60aef57
2 years ago