create an interface that takes in markdown content and converts it into tiptap schema and display it using the tiptap editor/viewr component
I'll create an interface that converts markdown content to Tiptap schema and displays it using the Tiptap editor. This will include a markdown input area and a live preview using Tiptap.
I've created a comprehensive Markdown to Tiptap converter interface with the following features:
The interface uses Tiptap's @tiptap/extension-markdown
which handles the bidirectional conversion between markdown and Tiptap's document structure. The schema output shows exactly how Tiptap represents the content internally, which you can use to programmatically create or manipulate editor content.
please dont use the markdown extention, use the normal one
I'll update the interface to use a standard markdown parser instead of Tiptap's markdown extension. This approach will use marked
to parse markdown to HTML, then let Tiptap handle the HTML content.
I've updated the interface to use the standard marked.js
markdown parser instead of Tiptap's markdown extension. Here's what changed:
@tiptap/extension-markdown
marked
library for markdown parsingTwo-Step Conversion Process:
marked.js
converts markdown to HTML with GitHub Flavored Markdown supportmarked.js
libraryThe interface now shows the complete conversion pipeline: Markdown → HTML → Tiptap Schema, giving you full visibility into each step of the process.
links aren't working nor tables, not sure if tiptap supports tables out of the box so just keep it siple without tables for now. i do would liek you to try to use images as well