debian-mirror-gitlab/app/assets/javascripts/content_editor/extensions/heading.js
2021-06-08 01:23:25 +05:30

5 lines
243 B
JavaScript

import { Heading } from '@tiptap/extension-heading';
import { defaultMarkdownSerializer } from 'prosemirror-markdown/src/to_markdown';
export const tiptapExtension = Heading;
export const serializer = defaultMarkdownSerializer.nodes.heading;