From 97f57c58ed182d49726dc597559779d3e7e624ae Mon Sep 17 00:00:00 2001 From: Ari Stathopoulos Date: Fri, 4 Sep 2020 16:58:08 +0300 Subject: [PATCH] Allow inserting an h1 using hash + space --- packages/block-library/src/heading/transforms.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/block-library/src/heading/transforms.js b/packages/block-library/src/heading/transforms.js index 4f43a0f4982d41..25c3fc4fa7f1c2 100644 --- a/packages/block-library/src/heading/transforms.js +++ b/packages/block-library/src/heading/transforms.js @@ -57,7 +57,7 @@ const transforms = { return createBlock( name, attributes ); }, }, - ...[ 2, 3, 4, 5, 6 ].map( ( level ) => ( { + ...[ 1, 2, 3, 4, 5, 6 ].map( ( level ) => ( { type: 'prefix', prefix: Array( level + 1 ).join( '#' ), transform( content ) {