We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a75f027 + 29e9f52 commit 16e4266Copy full SHA for 16e4266
src/blocks.js
@@ -101,6 +101,22 @@ registerBlockType( 'syntaxhighlighter/code', {
101
},
102
103
104
+ {
105
+ type: 'block',
106
+ blocks: [ 'core/code' ],
107
+ transform: ( { content } ) => {
108
+ return createBlock( 'syntaxhighlighter/code', { content } );
109
+ },
110
111
+ ],
112
+ to: [
113
114
115
116
117
+ return createBlock( 'core/code', { content } );
118
119
120
],
121
122
0 commit comments