How to use the prosemirror-markdown/src/to_markdown.defaultMarkdownSerializer.nodes function in prosemirror-markdown

To help you get started, we’ve selected a few prosemirror-markdown examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github gitlabhq / gitlabhq / app / assets / javascripts / content_editor / extensions / code_block_highlight.js View on Github external
of a codeblock.
        https://github.com/ProseMirror/prosemirror-markdown/blob/master/src/to_markdown.js#L62
      */
      params: {
        parseHTML: (element) => {
          return {
            params: extractLanguage(element),
          };
        },
      },
    };
  },
});

export const tiptapExtension = ExtendedCodeBlockLowlight;
export const serializer = defaultMarkdownSerializer.nodes.code_block;
github gitlabhq / gitlabhq / app / assets / javascripts / content_editor / extensions / image.js View on Github external
},
  parseHTML() {
    return [
      {
        priority: 100,
        tag: 'a.no-attachment-icon',
      },
      {
        tag: 'img[src]',
      },
    ];
  },
}).configure({ inline: true });

export const tiptapExtension = ExtendedImage;
export const serializer = defaultMarkdownSerializer.nodes.image;