JSPM

@remirror/extension-code-block

0.6.1-ci.1570418446.8+d29bcca4
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 44971
  • Score
    100M100P100Q162851F
  • License MIT

CodeBlock extension for the remirror wysiwyg editor

Package Exports

  • @remirror/extension-code-block

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@remirror/extension-code-block) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@remirror/extension-code-block

npm bundle size (scoped) npm

Add code highlighting to your codeBlocks.

Installation

yarn add refractor @remirror/extension-code-block

Refractor is a peer dependency and is needed when adding extra language support.

import jsx from 'refractor/lang/jsx';
import typescript from 'refractor/lang/typescript';
import { CodeBlockExtension } from '@remirror/extension-code-block';

new CodeBlockExtension({ supportedLanguages: [typescript, jsx] });