How to use the @remirror/extension-code-block.CodeBlockExtension function in @remirror/extension-code-block

To help you get started, we’ve selected a few @remirror/extension-code-block 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 ifiokjr / remirror / @remirror / editor-markdown / src / markdown-editor.tsx View on Github external
() =>
      ExtensionManager.create([
        { priority: 1, extension: new DocExtension({ content: 'block' }) },
        {
          priority: 1,
          extension: new CodeBlockExtension({ defaultLanguage: 'markdown', toggleType: 'codeBlock' }),
        },
        { priority: 1, extension: new TextExtension() },
        { extension: new CompositionExtension(), priority: 3 },
        { extension: new HistoryExtension(), priority: 3 },
        { extension: new GapCursorExtension(), priority: 10 },
        { extension: new BaseKeymapExtension(), priority: 10 },
      ]),
    [],

@remirror/extension-code-block

Unleash the inner coder with code blocks for your remirror editor.

MIT
Latest version published 5 months ago

Package Health Score

82 / 100
Full package analysis

Popular @remirror/extension-code-block functions