debian-mirror-gitlab/app/assets/javascripts/content_editor/extensions/paragraph.js

6 lines
251 B
JavaScript
Raw Normal View History

2021-06-08 01:23:25 +05:30
import { Paragraph } from '@tiptap/extension-paragraph';
import { defaultMarkdownSerializer } from 'prosemirror-markdown/src/to_markdown';
export const tiptapExtension = Paragraph;
export const serializer = defaultMarkdownSerializer.nodes.paragraph;