debian-mirror-gitlab/app/assets/javascripts/behaviors/markdown/nodes/text.js
2022-05-07 20:08:51 +05:30

11 lines
254 B
JavaScript

import { defaultMarkdownSerializer } from '~/lib/prosemirror_markdown_serializer';
export default () => ({
name: 'text',
schema: {
group: 'inline',
},
toMarkdown(state, node) {
defaultMarkdownSerializer.nodes.text(state, node);
},
});