@hywax/mdc-tiptap
v0.1.2
Published
[](https://www.npmjs.com/package/@hywax/mdc-tiptap) [](https://npmcharts.com/compare/hywax?minimal=true) [![Licens
Downloads
52
Readme
MDC to Tiptap
[!IMPORTANT] This is a temporary library for converting MDC to Tiptap, it will become obsolete after nuxt-content/studio#221. If you find a bug, please create an issue inside nuxt-content/studio as this is just a copy of files from studio.
Installation
# Using pnpm
pnpm add @hywax/mdc-tiptap -D
# Using yarn
yarn add @hywax/mdc-tiptap -D
# Using npm
npm install @hywax/mdc-tiptap -DUsage
import { createMarkdown } from '@hywax/mdc-tiptap'
const { tiptapToMarkdown, markdownToTiptap } = createMarkdown()
const markdown = await tiptapToMarkdown(tiptap) // Markdown string
const tiptap = await markdownToTiptap(markdown) // AST TiptapLicense
MDC to Tiptap is open sourced software licensed under the MIT license.
