diff --git a/explorer/post-parser.js b/explorer/post-parser.js index 7a30245..e82b427 100644 --- a/explorer/post-parser.js +++ b/explorer/post-parser.js @@ -1839,8 +1839,8 @@ case 'HTML_Void_Tag': return [ [ 'Tag', token.name ], token.attrs ]; case 'Text': return token.value; case 'WP_Block': return [ [ 'Block', token.blockType ], token.attrs, children ]; - case 'WP_Block_Open': return [ [ '+Block', token.blockType ], token.attrs ]; - case 'WP_Block_Close': return [ [ '-Block' ] ]; + case 'WP_Block_Start': return [ [ '+Block', token.blockType ], token.attrs ]; + case 'WP_Block_End': return [ [ '-Block' ] ]; default: return token; } } diff --git a/src/post.pegjs b/src/post.pegjs index 5c80b9d..1942d85 100644 --- a/src/post.pegjs +++ b/src/post.pegjs @@ -29,8 +29,8 @@ case 'HTML_Void_Tag': return [ [ 'Tag', token.name ], token.attrs ]; case 'Text': return token.value; case 'WP_Block': return [ [ 'Block', token.blockType ], token.attrs, children ]; - case 'WP_Block_Open': return [ [ '+Block', token.blockType ], token.attrs ]; - case 'WP_Block_Close': return [ [ '-Block' ] ]; + case 'WP_Block_Start': return [ [ '+Block', token.blockType ], token.attrs ]; + case 'WP_Block_End': return [ [ '-Block' ] ]; default: return token; } }