open-index/open-npm huggingface dataset:
npm package: @hywax/mdc-tiptap
Description: [![Version](https://img.shields.io/npm/v/@hywax/mdc-tiptap.svg?label=version)](https://www.npmjs.com/package/@hywax/mdc-tiptap) [![Downloads](https://img.shields.io/npm/dm/@hywax/mdc-tiptap.svg)](https://npmcharts.com/compare/hywax?minimal=true) [![Licens
Latest version: 0.1.2

# MDC to Tiptap

[![Version](https://img.shields.io/npm/v/@hywax/mdc-tiptap.svg?label=version)](https://www.npmjs.com/package/@hywax/mdc-tiptap)
[![Downloads](https://img.shields.io/npm/dm/@hywax/mdc-tiptap.svg)](https://npmcharts.com/compare/hywax?minimal=true)
[![License](https://img.shields.io/npm/l/@hywax/mdc-tiptap.svg)](https://www.npmjs.com/package/@hywax/mdc-tiptap)

> [!IMPORTANT]
> This is a temporary library for converting MDC to Tiptap, it will become obsolete after [nuxt-content/studio#221](https://github.com/nuxt-content/studio/issues/221).
> If you find a bug, please create an issue inside [nuxt-content/studio](https://github.com/nuxt-content/studio/issues) as this is just a copy of files from studio.

## Installation

```bash
# Using pnpm
pnpm add @hywax/mdc-tiptap -D

# Using yarn
yarn add @hywax/mdc-tiptap -D

# Using npm
npm install @hywax/mdc-tiptap -D
```

## Usage

```ts
import { createMarkdown } from '@hywax/mdc-tiptap'

const { tiptapToMarkdown, markdownToTiptap } = createMarkdown()

const markdown = await tiptapToMarkdown(tiptap) // Markdown string
const tiptap = await markdownToTiptap(markdown) // AST Tiptap
```

## License

MDC to Tiptap is open sourced software licensed under the [MIT license](https://github.com/hywax/mdc-tiptap/blob/main/LICENSE.md).