The Conversion extensions are published in Tiptap’s private npm registry. Integrate the extensions by following the private registry guide.
Install the Import extension:
npm i @tiptap-pro/extension-import
Configure the extension in your editor
import { Import } from'@tiptap-pro/extension-import'const editor = newEditor({
// ...extensions: [
// ...Import.configure({
// Your Convert App ID from https://cloud.tiptap.dev/convert-settingsappId: 'your-app-id',
// JWT token you generatedtoken: 'your-jwt',
// If your markdown includes images, you can provide a URL for image uploadimageUploadCallbackUrl: 'https://your-image-upload-url.com',
}),
],
})
Import your first document
editor.chain().focus().import({ file }).run()
This uploads the chosen .md file to the Conversion API, converts it into Tiptap JSON, and replaces the current editor content.