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
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] });