19 | 20 | 21 | 22 | 26 | 27 | 28 | 29 | {post.node.blocks.map((block, index) => { 30 | if ("WordPress_CoreCodeBlock" === block.__typename) { 31 | block.attributes.content = block.attributes.codeContent; 32 | delete block.attributes.codeContent; 33 | } 34 | return ; 35 | })} 36 | 39 |
19 | 20 | 21 | 22 | 23 | 24 | {post.blocks.map((block, index) => { 25 | if ("WordPress_CoreCodeBlock" === block.__typename) { 26 | block.attributes.content = block.attributes.codeContent; 27 | delete block.attributes.codeContent; 28 | } 29 | return ; 30 | })} 31 | 34 |