Create a custom mark view
While node views are used to render nodes, mark views are used to render marks. They are a little bit simpler, because they don’t have to deal with the complexity of a node and come with a simpler API.
Mark views are amazing to improve the in-editor experience, but can also be used in a read-only instance of Tiptap. They are unrelated to the HTML output by design, so you have full control about the in-editor experience and the output.
Render JavaScript/Vue/React
But what if you want to render your actual JavaScript/Vue/React code? Use the Static Renderer. This utility lets you render your content as HTML, Markdown, or React components, without an Editor instance.