Welcome to mirror list, hosted at ThFree Co, Russian Federation.

text.js « nodes « markdown « behaviors « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0e1f0bc0e40de452e542bc775695268639b40a30 (plain)
1
2
3
4
5
6
7
8
9
10
11
import { defaultMarkdownSerializer } from '~/lib/prosemirror_markdown_serializer';

export default () => ({
  name: 'text',
  schema: {
    group: 'inline',
  },
  toMarkdown(state, node) {
    defaultMarkdownSerializer.nodes.text(state, node);
  },
});