Skip to content

Commit

Permalink
Allow inserting an h1 using # + space (#25075)
Browse files Browse the repository at this point in the history
  • Loading branch information
aristath authored Sep 7, 2020
1 parent 458277c commit c06fff0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-library/src/heading/transforms.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {
Expand Down

0 comments on commit c06fff0

Please sign in to comment.