Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | 2x 2x 2x 20x 2x | const React = require('react'); const codemirror = require('./codemirror.jsx'); // eslint-disable-next-line react/display-name module.exports = (code, lang, opts = { dark: false, tokenizeVariables: false }) => React.createElement( 'span', { className: opts.dark ? 'cm-s-tomorrow-night' : 'cm-s-neo', }, codemirror(typeof code === 'string' ? code : '', lang, opts) ); module.exports.uppercase = require('./uppercase'); |