a7e77e10fe
The schema is built on top of the default schema and Node and Mark classes provided by tiptap-extensions. prosemirror-model is used to parse HTML/DOM into a prosemirror document, and prosemirror-markdown is used to serialize this document to (GitLab Flavored) Markdown.
15 lines
223 B
JavaScript
15 lines
223 B
JavaScript
/* eslint-disable class-methods-use-this */
|
|
|
|
import { Node } from 'tiptap';
|
|
|
|
export default class Doc extends Node {
|
|
get name() {
|
|
return 'doc';
|
|
}
|
|
|
|
get schema() {
|
|
return {
|
|
content: 'block+',
|
|
};
|
|
}
|
|
}
|