blob: 3f17c4272bb1a45531d272fd9f185a2b9114c9b0 (
plain)
1
2
3
4
5
6
7
8
9
|
const GitBook = require('gitbook-core');
const CodeBlock = require('./CodeBlock');
module.exports = GitBook.createPlugin({
activate: (dispatch, getState, { Components }) => {
dispatch(Components.registerComponent(CodeBlock, { role: 'html:code' }));
},
reduce: (state, action) => state
});
|