Commit 29e9f52
committed
Add transforms to/from core code block
This adds transforms so that SyntaxHighlighter code blocks can be
directly converted from and to the Gutenberg `core/code` blocks.
When pasting a markdown post into Gutenberg, code blocks in the post are
automatically converted to `core/code` blocks, so I have to manually
change them into SyntaxHighlighter blocks instead. Without this patch,
that means creating a new block, copy/pasting the content of the old
block to the new one, and then deleting the old block. For a long post
this takes quite a lot of time. With this change it will be a two-click
operation per block.1 parent a75f027 commit 29e9f52
1 file changed
+16
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
104 | 120 | | |
105 | 121 | | |
106 | 122 | | |
| |||
0 commit comments