diff --git a/docs/reference-guides/core-blocks.md b/docs/reference-guides/core-blocks.md index 7e359ae4bc747..e3601a1f0a509 100644 --- a/docs/reference-guides/core-blocks.md +++ b/docs/reference-guides/core-blocks.md @@ -284,7 +284,7 @@ Introduce new sections and organize content to help visitors (and search engines - **Name:** core/heading - **Category:** text -- **Supports:** __unstablePasteTextInline, align (full, wide), anchor, color (background, gradients, link, text), spacing (margin, padding), typography (fontSize, lineHeight), ~~className~~ +- **Supports:** __unstablePasteTextInline, align (full, wide), anchor, className, color (background, gradients, link, text), spacing (margin, padding), typography (fontSize, lineHeight) - **Attributes:** content, level, placeholder, textAlign ## Home Link diff --git a/lib/blocks.php b/lib/blocks.php index 669decebf2c36..add72e77062cb 100644 --- a/lib/blocks.php +++ b/lib/blocks.php @@ -23,7 +23,6 @@ function gutenberg_reregister_core_block_types() { 'columns', 'comments', 'group', - 'heading', 'html', 'list', 'list-item', @@ -69,6 +68,7 @@ function gutenberg_reregister_core_block_types() { 'home-link.php' => 'core/home-link', 'image.php' => 'core/image', 'gallery.php' => 'core/gallery', + 'heading.php' => 'core/heading', 'latest-comments.php' => 'core/latest-comments', 'latest-posts.php' => 'core/latest-posts', 'loginout.php' => 'core/loginout', diff --git a/package-lock.json b/package-lock.json index c539ceb114a26..ffe9ff267906a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19527,7 +19527,7 @@ "app-root-dir": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/app-root-dir/-/app-root-dir-1.0.2.tgz", - "integrity": "sha512-jlpIfsOoNoafl92Sz//64uQHGSyMrD2vYG5d8o2a4qGvyNCvXur7bzIsWtAC/6flI2RYAp3kv8rsfBtaLm7w0g==", + "integrity": "sha1-OBh+wt6nV3//Az/8sSFyaS/24Rg=", "dev": true }, "app-root-path": { @@ -26172,14 +26172,14 @@ "array-find-index": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/array-find-index/-/array-find-index-1.0.2.tgz", - "integrity": "sha512-M1HQyIXcBGtVywBt8WVdim+lrNaK7VHp99Qt5pSNziXznKHViIBbXWtfRTpEFpF/c4FdfxNAsCCwPp5phBYJtw==", + "integrity": "sha1-3wEKoSh+Fku9pvlyOwqWoexBh6E=", "dev": true, "optional": true }, "array-flatten": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", - "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=", + "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==", "dev": true }, "array-ify": { @@ -27809,7 +27809,7 @@ "babel-plugin-add-react-displayname": { "version": "0.0.5", "resolved": "https://registry.npmjs.org/babel-plugin-add-react-displayname/-/babel-plugin-add-react-displayname-0.0.5.tgz", - "integrity": "sha512-LY3+Y0XVDYcShHHorshrDbt4KFWL4bSeniCtl4SYZbask+Syngk1uMPCeN9+nSiZo6zX5s0RTq/J9Pnaaf/KHw==", + "integrity": "sha1-M51M3be2X9YtHfnbn+BN4TQSK9U=", "dev": true }, "babel-plugin-apply-mdx-type-prop": { @@ -28232,7 +28232,7 @@ "batch-processor": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/batch-processor/-/batch-processor-1.0.0.tgz", - "integrity": "sha512-xoLQD8gmmR32MeuBHgH0Tzd5PuSZx71ZsbhVxOCRbgktZEPe4SQy7s9Z50uPp0F/f7iw2XmkHN2xkgbMfckMDA==", + "integrity": "sha1-dclcMrdI4IUNEMKxaPa9vpiRrOg=", "dev": true }, "bcrypt-pbkdf": { @@ -29195,7 +29195,7 @@ "camelcase-keys": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-2.1.0.tgz", - "integrity": "sha512-bA/Z/DERHKqoEOrp+qeGKw1QlvEQkGZSc0XaY6VnTxZr+Kv1G5zFwttpjv8qxZ/sBPT4nthwZaAcsAZTJlSKXQ==", + "integrity": "sha1-MIvur/3ygRkFHvodkyITyRuPkuc=", "dev": true, "optional": true, "requires": { @@ -29206,7 +29206,7 @@ "camelcase": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-2.1.1.tgz", - "integrity": "sha512-DLIsRzJVBQu72meAKPkWQOLcujdXT32hwdfnkI1frSiSRMK1MofjKHf+MEx0SB6fjEFXL8fBDv1dKymBlOp4Qw==", + "integrity": "sha1-fB0W1nmhu+WcoCys7PsBHiAfWh8=", "dev": true, "optional": true } @@ -30749,7 +30749,7 @@ "cookie-signature": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", - "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw=", + "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==", "dev": true }, "copy-concurrently": { @@ -31595,7 +31595,7 @@ "currently-unhandled": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/currently-unhandled/-/currently-unhandled-0.4.1.tgz", - "integrity": "sha512-/fITjgjGU50vjQ4FH6eUoYu+iUoUKIXws2hL15JJpIR+BbTxaXQsMuuyjtNh2WqsSBS5nsaZHFsFecyw5CCAng==", + "integrity": "sha1-mI3zP+qxke95mmE2nddsF635V+o=", "dev": true, "optional": true, "requires": { @@ -36518,7 +36518,7 @@ "get-stdin": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-4.0.1.tgz", - "integrity": "sha512-F5aQMywwJ2n85s4hJPTT9RPxGmubonuB10MNYo17/xph174n2MIR33HRguhzVag10O/npM7SPk73LMZNP+FaWw==", + "integrity": "sha1-uWjGsKBDhDJJAui/Gl3zJXmkUP4=", "dev": true, "optional": true }, @@ -36749,7 +36749,7 @@ "glob-to-regexp": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.3.0.tgz", - "integrity": "sha512-Iozmtbqv0noj0uDDqoL0zNq0VBEfK2YFoMAZoxJe4cwphvLR+JskfF30QhXHOR4m3KrE6NLRYw+U9MRXvifyig==", + "integrity": "sha1-jFoUlNIGbFcMw7/kSWF1rMTVAqs=", "dev": true }, "global": { @@ -37044,7 +37044,7 @@ "has-glob": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/has-glob/-/has-glob-1.0.0.tgz", - "integrity": "sha512-D+8A457fBShSEI3tFCj65PAbT++5sKiFtdCdOam0gnfBgw9D277OERk+HM9qYJXmdVLZ/znez10SqHN0BBQ50g==", + "integrity": "sha1-mqqe7b/7G6OZCnsAEPtnjuAIEgc=", "dev": true, "requires": { "is-glob": "^3.0.0" @@ -37053,7 +37053,7 @@ "is-glob": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-3.1.0.tgz", - "integrity": "sha512-UFpDDrPgM6qpnFNI+rh/p3bUaq9hKLZN8bMUWzxmcnZVS3omf4IPK+BrewlnWjO1WmUsMYuSjKh4UJuV4+Lqmw==", + "integrity": "sha1-e6WuJCF4BKxwcHuWkiVnSGzD6Eo=", "dev": true, "requires": { "is-extglob": "^2.1.0" @@ -38918,7 +38918,7 @@ "is-utf8": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/is-utf8/-/is-utf8-0.2.1.tgz", - "integrity": "sha512-rMYPYvCzsXywIsldgLaSoPlw5PfoB/ssr7hY4pLfcodrA5M/eArza1a9VmTiNIBNMjOGr1Ow9mTyU2o69U6U9Q==", + "integrity": "sha1-Sw2hRCEE0bM2NA6AeX6GXPOffXI=", "dev": true, "optional": true }, @@ -38940,7 +38940,7 @@ "is-window": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-window/-/is-window-1.0.2.tgz", - "integrity": "sha512-uj00kdXyZb9t9RcAUAwMZAnkBUwdYGhYlt7djMXhfyhUCzwNba50tIiBKR7q0l7tdoBtFVw/3JmLY6fI3rmZmg==", + "integrity": "sha1-LIlspT25feRdPDMTOmXYyfVjSA0=", "dev": true }, "is-windows": { @@ -42317,7 +42317,7 @@ "js-string-escape": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/js-string-escape/-/js-string-escape-1.0.1.tgz", - "integrity": "sha512-Smw4xcfIQ5LVjAOuJCvN/zIodzA/BBSsluuoSykP+lUvScIi4U6RJLfwHet5cxFnCswUjISV8oAXaqaJDY3chg==", + "integrity": "sha1-4mJbrbwNZ8dTPp7cEGjFh65BN+8=", "dev": true }, "js-tokens": { @@ -43638,7 +43638,7 @@ "load-json-file": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz", - "integrity": "sha512-cy7ZdNRXdablkXYNI049pthVeXFurRyb9+hA/dZzerZ0pGTx42z+y+ssxBaVV2l70t1muq5IdKhn4UtcoGUY9A==", + "integrity": "sha1-lWkFcI1YtLq0wiYbBPWfMcmTdMA=", "dev": true, "optional": true, "requires": { @@ -43652,7 +43652,7 @@ "parse-json": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz", - "integrity": "sha512-QR/GGaKCkhwk1ePQNYDRKYZ3mwU9ypsKhB0XyFnLQdomyEqk3e8wpW3V5Jp88zbxK4n5ST1nqo+g9juTpownhQ==", + "integrity": "sha1-9ID0BDTvgHQfhGkJn43qGPVaTck=", "dev": true, "optional": true, "requires": { @@ -43960,7 +43960,7 @@ "loud-rejection": { "version": "1.6.0", "resolved": "https://registry.npmjs.org/loud-rejection/-/loud-rejection-1.6.0.tgz", - "integrity": "sha512-RPNliZOFkqFumDhvYqOaNY4Uz9oJM2K9tC6JWsJJsNdhuONW4LQHRBpb0qf4pJApVffI5N39SwzWZJuEhfd7eQ==", + "integrity": "sha1-W0b4AUft7leIcPCG0Eghz5mOVR8=", "dev": true, "optional": true, "requires": { @@ -44210,7 +44210,7 @@ "map-obj": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz", - "integrity": "sha512-7N/q3lyZ+LVCp7PzuxrJr4KMbBE2hW7BT7YNia330OFxIf4d3r5zVpicP2650l7CPN6RM9zOJRl3NGpqSiw3Eg==", + "integrity": "sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0=", "dev": true, "optional": true }, @@ -44518,7 +44518,7 @@ "media-typer": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", - "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=", + "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", "dev": true }, "mem": { @@ -44782,7 +44782,7 @@ "merge-descriptors": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", - "integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E=", + "integrity": "sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w==", "dev": true }, "merge-stream": { @@ -44799,7 +44799,7 @@ "methods": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", - "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=", + "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", "dev": true }, "metro": { @@ -47250,7 +47250,7 @@ "num2fraction": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/num2fraction/-/num2fraction-1.2.2.tgz", - "integrity": "sha512-Y1wZESM7VUThYY+4W+X4ySH2maqcA+p7UR+w8VWNWVAd6lwuXXWz/w/Cz43J/dI2I+PS6wD5N+bJUF+gjWvIqg==", + "integrity": "sha1-b2gragJ6Tp3fpFZM0lidHU5mnt4=", "dev": true }, "number-is-nan": { @@ -48728,7 +48728,7 @@ "p-defer": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/p-defer/-/p-defer-1.0.0.tgz", - "integrity": "sha512-wB3wfAxZpk2AzOfUMJNL+d36xothRSyj8EXOa4f6GMqYDN9BJaaSISbsk+wS9abmnebVw95C2Kb5t85UmpCxuw==", + "integrity": "sha1-n26xgvbJqozXQwBKfU+WsZaw+ww=", "dev": true }, "p-event": { @@ -49367,7 +49367,7 @@ "path-to-regexp": { "version": "0.1.7", "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", - "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=", + "integrity": "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==", "dev": true }, "path-type": { @@ -50302,7 +50302,7 @@ "pretty-hrtime": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/pretty-hrtime/-/pretty-hrtime-1.0.3.tgz", - "integrity": "sha512-66hKPCr+72mlfiSjlEB1+45IjXSqvVAIy6mocupoww4tBFE9R9IhwwUGoI4G++Tc9Aq+2rxOt0RFU6gPcrte0A==", + "integrity": "sha1-t+PqQkNaTJsnWdmeDyAesZWALuE=", "dev": true }, "prismjs": { @@ -52354,7 +52354,7 @@ "redent": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/redent/-/redent-1.0.0.tgz", - "integrity": "sha512-qtW5hKzGQZqKoh6JNSD+4lfitfPKGz42e6QwiRmPM5mmKtR0N41AbJRYu0xJi7nhOJ4WDgRkKvAk6tw4WIwR4g==", + "integrity": "sha1-z5Fqsf1fHxbfsggi3W7H9zDCr94=", "dev": true, "optional": true, "requires": { @@ -52365,7 +52365,7 @@ "indent-string": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-2.1.0.tgz", - "integrity": "sha512-aqwDFWSgSgfRaEwao5lg5KEcVd/2a+D1rvoG7NdilmYz0NwRk6StWpWdz/Hpk34MKPpx7s8XxUqimfcQK6gGlg==", + "integrity": "sha1-ji1INIdCEhtKghi3oTfppSBJ3IA=", "dev": true, "optional": true, "requires": { @@ -52608,7 +52608,7 @@ "relateurl": { "version": "0.2.7", "resolved": "https://registry.npmjs.org/relateurl/-/relateurl-0.2.7.tgz", - "integrity": "sha512-G08Dxvm4iDN3MLM0EsP62EDV9IuhXPR6blNz6Utcp7zyV3tr4HVNINt6MpaRWbxoOHT3Q7YN2P+jaHX8vUbgog==", + "integrity": "sha1-VNvzd+UUQKypCkzSdGANP/LYiKk=", "dev": true }, "remark": { @@ -53146,7 +53146,7 @@ "repeating": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/repeating/-/repeating-2.0.1.tgz", - "integrity": "sha512-ZqtSMuVybkISo2OWvqvm7iHSWngvdaW3IpsT9/uP8v4gMi591LY6h35wdOfvQdWCKFWZWm2Y1Opp4kV7vQKT6A==", + "integrity": "sha1-UhTFOpJtNVJwdSf7q0FdvAjQbdo=", "dev": true, "optional": true, "requires": { @@ -53940,7 +53940,7 @@ "serve-favicon": { "version": "2.5.0", "resolved": "https://registry.npmjs.org/serve-favicon/-/serve-favicon-2.5.0.tgz", - "integrity": "sha512-FMW2RvqNr03x+C0WxTyu6sOv21oOjkq5j8tjquWccwa6ScNyGFOGJVpuS1NmTVGBAHS07xnSKotgf2ehQmf9iA==", + "integrity": "sha1-k10kDN/g9YBTB/3+ln2IlCosvPA=", "dev": true, "requires": { "etag": "~1.8.1", @@ -56099,7 +56099,7 @@ "strip-bom": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz", - "integrity": "sha512-kwrX1y7czp1E69n2ajbG65mIo9dqvJ+8aBQXOGVxqwvNbsXdFM6Lq37dLAY3mknUwru8CfcCbfOLL/gMo+fi3g==", + "integrity": "sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=", "dev": true, "optional": true, "requires": { @@ -56120,7 +56120,7 @@ "strip-indent": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-1.0.1.tgz", - "integrity": "sha512-I5iQq6aFMM62fBEAIB/hXzwJD6EEZ0xEGCX2t7oXqaKPIRgt4WruAQ285BISgdkP+HLGWyeGmNJcpIwFeRYRUA==", + "integrity": "sha1-DHlipq3vp7vUrDZkYKY4VSrhoKI=", "dev": true, "optional": true, "requires": { @@ -57867,7 +57867,7 @@ "trim-newlines": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-1.0.0.tgz", - "integrity": "sha512-Nm4cF79FhSTzrLKGDMi3I4utBtFv8qKy4sq1enftf2gMdpqI8oVQTAfySkTz5r49giVzDj88SVZXP4CeYQwjaw==", + "integrity": "sha1-WIeWa7WCpFA6QetST301ARgVphM=", "dev": true, "optional": true }, @@ -58380,7 +58380,7 @@ "untildify": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/untildify/-/untildify-2.1.0.tgz", - "integrity": "sha512-sJjbDp2GodvkB0FZZcn7k6afVisqX5BZD7Yq3xp4nN2O15BBK0cLm3Vwn2vQaF7UDS0UUsrQMkkplmDI5fskig==", + "integrity": "sha1-F+soB5h/dpUunASF/DEdBqgmouA=", "dev": true, "optional": true, "requires": { @@ -58656,7 +58656,7 @@ "utila": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/utila/-/utila-0.4.0.tgz", - "integrity": "sha512-Z0DbgELS9/L/75wZbro8xAnT50pBVFQZ+hUEueGDU5FN51YSCYM+jdxsfCiHjwNP/4LCDD0i/graKpeBnOXKRA==", + "integrity": "sha1-ihagXURWV6Oupe7MWxKk+lN5dyw=", "dev": true }, "utility-types": { @@ -58677,7 +58677,7 @@ "uuid-browser": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/uuid-browser/-/uuid-browser-3.1.0.tgz", - "integrity": "sha512-dsNgbLaTrd6l3MMxTtouOCFw4CBFc/3a+GgYA2YyrJvyQ1u6q4pcu3ktLoUZ/VN/Aw9WsauazbgsgdfVWgAKQg==", + "integrity": "sha1-DwWkCu90+eWVHiDvv0SxGHHlZBA=", "dev": true }, "v8-compile-cache": { @@ -60540,7 +60540,7 @@ "x-default-browser": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/x-default-browser/-/x-default-browser-0.4.0.tgz", - "integrity": "sha512-7LKo7RtWfoFN/rHx1UELv/2zHGMx8MkZKDq1xENmOCTkfIqZJ0zZ26NEJX8czhnPXVcqS0ARjjfJB+eJ0/5Cvw==", + "integrity": "sha1-cM8NqF2nwKtcsPFaiX8jIqa91IE=", "dev": true, "requires": { "default-browser-id": "^1.0.4" diff --git a/packages/block-library/src/group/test/__snapshots__/edit.native.js.snap b/packages/block-library/src/group/test/__snapshots__/edit.native.js.snap index ee8488edf8864..7234dc54ee4d5 100644 --- a/packages/block-library/src/group/test/__snapshots__/edit.native.js.snap +++ b/packages/block-library/src/group/test/__snapshots__/edit.native.js.snap @@ -3,7 +3,7 @@ exports[`Group block inserts block and adds a Heading block as an inner block 1`] = ` "
code
code
-" `; diff --git a/packages/e2e-tests/specs/editor/blocks/heading.test.js b/packages/e2e-tests/specs/editor/blocks/heading.test.js index b4181fce6e99d..fb89bed12accc 100644 --- a/packages/e2e-tests/specs/editor/blocks/heading.test.js +++ b/packages/e2e-tests/specs/editor/blocks/heading.test.js @@ -87,7 +87,7 @@ describe( 'Heading', () => { await page.keyboard.press( 'Enter' ); expect( await getEditedPostContent() ).toMatchInlineSnapshot( ` " -test
+test
+ " ` ); } ); } ); diff --git a/packages/e2e-tests/specs/editor/various/__snapshots__/block-grouping.test.js.snap b/packages/e2e-tests/specs/editor/various/__snapshots__/block-grouping.test.js.snap index 12a32b4e61bd7..39621047016d4 100644 --- a/packages/e2e-tests/specs/editor/various/__snapshots__/block-grouping.test.js.snap +++ b/packages/e2e-tests/specs/editor/various/__snapshots__/block-grouping.test.js.snap @@ -3,7 +3,7 @@ exports[`Block Grouping Group creation creates a group from multiple blocks of different types via block transforms 1`] = ` "1
- - - -2
- " + 2
-chicken
+chicken
@@ -42,7 +42,7 @@ exports[`Blocks raw handling should correctly handle quotes with mixed content 1 exports[`rawHandler should convert HTML post to blocks with minimal content changes 1`] = ` " -Howdy
+Howdy
@@ -58,7 +58,7 @@ exports[`rawHandler should convert HTML post to blocks with minimal content chan -More tag
+More tag
@@ -66,7 +66,7 @@ exports[`rawHandler should convert HTML post to blocks with minimal content chan -Shortcode
+Shortcode
@@ -98,7 +98,7 @@ exports[`rawHandler should convert HTML post to blocks with minimal content chan-Heading
+Heading
diff --git a/test/integration/blocks-raw-handling.test.js b/test/integration/blocks-raw-handling.test.js index 2bc08c9a7b35a..f7d7320114072 100644 --- a/test/integration/blocks-raw-handling.test.js +++ b/test/integration/blocks-raw-handling.test.js @@ -249,7 +249,7 @@ describe( 'Blocks raw handling', () => { .join( '' ); expect( filtered ).toBe( - 'Some heading
A paragraph.
' + 'Some heading
A paragraph.
' ); expect( console ).toHaveLogged(); } ); @@ -336,7 +336,7 @@ describe( 'Blocks raw handling', () => { it( 'should correctly handle quotes with mixed content', () => { const filtered = serialize( pasteHandler( { - HTML: '', + HTML: 'chicken
ribs
', mode: 'AUTO', } ) ); diff --git a/test/integration/fixtures/blocks/core__heading__deprecated-1.serialized.html b/test/integration/fixtures/blocks/core__heading__deprecated-1.serialized.html index 0a2f890302c3f..a064b6f60cf04 100644 --- a/test/integration/fixtures/blocks/core__heading__deprecated-1.serialized.html +++ b/test/integration/fixtures/blocks/core__heading__deprecated-1.serialized.html @@ -1,3 +1,3 @@ -chicken
ribs
A picture is worth a thousand words, or so the saying goes
+A picture is worth a thousand words, or so the saying goes
diff --git a/test/integration/fixtures/blocks/core__heading__deprecated-2.serialized.html b/test/integration/fixtures/blocks/core__heading__deprecated-2.serialized.html index 1dbaea2593eb9..989d82a8d7fca 100644 --- a/test/integration/fixtures/blocks/core__heading__deprecated-2.serialized.html +++ b/test/integration/fixtures/blocks/core__heading__deprecated-2.serialized.html @@ -1,3 +1,3 @@ -text
+text
diff --git a/test/integration/fixtures/blocks/core__heading__deprecated-3.serialized.html b/test/integration/fixtures/blocks/core__heading__deprecated-3.serialized.html index c2c4470e500f1..2e04a7e01f977 100644 --- a/test/integration/fixtures/blocks/core__heading__deprecated-3.serialized.html +++ b/test/integration/fixtures/blocks/core__heading__deprecated-3.serialized.html @@ -1,3 +1,3 @@ -Text
+Text
diff --git a/test/integration/fixtures/blocks/core__heading__deprecated-4.serialized.html b/test/integration/fixtures/blocks/core__heading__deprecated-4.serialized.html index 2e4f98cda15ff..cc4218e776a73 100644 --- a/test/integration/fixtures/blocks/core__heading__deprecated-4.serialized.html +++ b/test/integration/fixtures/blocks/core__heading__deprecated-4.serialized.html @@ -1,3 +1,3 @@ -Text
+Text
diff --git a/test/integration/fixtures/blocks/core__heading__h2-color.html b/test/integration/fixtures/blocks/core__heading__h2-color.html index 23c39f701c765..7d1dee6d70632 100644 --- a/test/integration/fixtures/blocks/core__heading__h2-color.html +++ b/test/integration/fixtures/blocks/core__heading__h2-color.html @@ -1,4 +1,4 @@ -Text
+Text
diff --git a/test/integration/fixtures/blocks/core__heading__h2-color.parsed.json b/test/integration/fixtures/blocks/core__heading__h2-color.parsed.json index 64a2fb552e7fb..763648f6d6112 100644 --- a/test/integration/fixtures/blocks/core__heading__h2-color.parsed.json +++ b/test/integration/fixtures/blocks/core__heading__h2-color.parsed.json @@ -5,9 +5,9 @@ "textColor": "accent" }, "innerBlocks": [], - "innerHTML": "\nText
\n", + "innerHTML": "\nText
\n", "innerContent": [ - "\nText
\n" + "\nText
\n" ] } ] diff --git a/test/integration/fixtures/blocks/core__heading__h2-color.serialized.html b/test/integration/fixtures/blocks/core__heading__h2-color.serialized.html index 862a62b2d7975..73bb943850272 100644 --- a/test/integration/fixtures/blocks/core__heading__h2-color.serialized.html +++ b/test/integration/fixtures/blocks/core__heading__h2-color.serialized.html @@ -1,3 +1,3 @@ -Text
+Text
diff --git a/test/integration/fixtures/blocks/core__heading__h2.html b/test/integration/fixtures/blocks/core__heading__h2.html index a55b391a25057..d7b487af0b670 100644 --- a/test/integration/fixtures/blocks/core__heading__h2.html +++ b/test/integration/fixtures/blocks/core__heading__h2.html @@ -1,3 +1,3 @@ -A picture is worth a thousand words, or so the saying goes
+A picture is worth a thousand words, or so the saying goes
diff --git a/test/integration/fixtures/blocks/core__heading__h2.parsed.json b/test/integration/fixtures/blocks/core__heading__h2.parsed.json index 7e8932f95e5de..ab763edaea5ec 100644 --- a/test/integration/fixtures/blocks/core__heading__h2.parsed.json +++ b/test/integration/fixtures/blocks/core__heading__h2.parsed.json @@ -3,9 +3,9 @@ "blockName": "core/heading", "attrs": {}, "innerBlocks": [], - "innerHTML": "\nA picture is worth a thousand words, or so the saying goes
\n", + "innerHTML": "\nA picture is worth a thousand words, or so the saying goes
\n", "innerContent": [ - "\nA picture is worth a thousand words, or so the saying goes
\n" + "\nA picture is worth a thousand words, or so the saying goes
\n" ] } ] diff --git a/test/integration/fixtures/blocks/core__heading__h2.serialized.html b/test/integration/fixtures/blocks/core__heading__h2.serialized.html index 1212bf83c3029..96cc3063da105 100644 --- a/test/integration/fixtures/blocks/core__heading__h2.serialized.html +++ b/test/integration/fixtures/blocks/core__heading__h2.serialized.html @@ -1,3 +1,3 @@ -A picture is worth a thousand words, or so the saying goes
+A picture is worth a thousand words, or so the saying goes
diff --git a/test/integration/fixtures/blocks/core__heading__h4-em.html b/test/integration/fixtures/blocks/core__heading__h4-em.html index bd13c30bb968d..0a72af58e24db 100644 --- a/test/integration/fixtures/blocks/core__heading__h4-em.html +++ b/test/integration/fixtures/blocks/core__heading__h4-em.html @@ -1,3 +1,3 @@ -The Inserter Tool
+The Inserter Tool
diff --git a/test/integration/fixtures/blocks/core__heading__h4-em.parsed.json b/test/integration/fixtures/blocks/core__heading__h4-em.parsed.json index 283fd532b3fd2..b8cd44ca0471e 100644 --- a/test/integration/fixtures/blocks/core__heading__h4-em.parsed.json +++ b/test/integration/fixtures/blocks/core__heading__h4-em.parsed.json @@ -5,7 +5,9 @@ "level": 4 }, "innerBlocks": [], - "innerHTML": "\nThe Inserter Tool
\n", - "innerContent": [ "\nThe Inserter Tool
\n" ] + "innerHTML": "\nThe Inserter Tool
\n", + "innerContent": [ + "\nThe Inserter Tool
\n" + ] } ] diff --git a/test/integration/fixtures/blocks/core__heading__h4-em.serialized.html b/test/integration/fixtures/blocks/core__heading__h4-em.serialized.html index 051e1c9f39b27..d7a3b904dbd9a 100644 --- a/test/integration/fixtures/blocks/core__heading__h4-em.serialized.html +++ b/test/integration/fixtures/blocks/core__heading__h4-em.serialized.html @@ -1,3 +1,3 @@ -The Inserter Tool
+The Inserter Tool
diff --git a/test/integration/fixtures/blocks/core__heading_align-textalign.html b/test/integration/fixtures/blocks/core__heading_align-textalign.html index 26c8041d1b97a..3f7fb12335b4b 100644 --- a/test/integration/fixtures/blocks/core__heading_align-textalign.html +++ b/test/integration/fixtures/blocks/core__heading_align-textalign.html @@ -1,3 +1,3 @@ -Text
+Text
diff --git a/test/integration/fixtures/blocks/core__heading_align-textalign.parsed.json b/test/integration/fixtures/blocks/core__heading_align-textalign.parsed.json index 918ba0e5c79bb..bd378de8f71dc 100644 --- a/test/integration/fixtures/blocks/core__heading_align-textalign.parsed.json +++ b/test/integration/fixtures/blocks/core__heading_align-textalign.parsed.json @@ -6,9 +6,9 @@ "align": "wide" }, "innerBlocks": [], - "innerHTML": "\nText
\n", + "innerHTML": "\nText
\n", "innerContent": [ - "\nText
\n" + "\nText
\n" ] } ] diff --git a/test/integration/fixtures/blocks/core__heading_align-textalign.serialized.html b/test/integration/fixtures/blocks/core__heading_align-textalign.serialized.html index 26c8041d1b97a..3f7fb12335b4b 100644 --- a/test/integration/fixtures/blocks/core__heading_align-textalign.serialized.html +++ b/test/integration/fixtures/blocks/core__heading_align-textalign.serialized.html @@ -1,3 +1,3 @@ -Text
+Text
diff --git a/test/integration/fixtures/documents/google-docs-out.html b/test/integration/fixtures/documents/google-docs-out.html index db8bc81948fcc..e88311fab7b1f 100644 --- a/test/integration/fixtures/documents/google-docs-out.html +++ b/test/integration/fixtures/documents/google-docs-out.html @@ -3,7 +3,7 @@ -This is a heading
+This is a heading
diff --git a/test/integration/fixtures/documents/google-docs-with-comments-out.html b/test/integration/fixtures/documents/google-docs-with-comments-out.html index db8bc81948fcc..e88311fab7b1f 100644 --- a/test/integration/fixtures/documents/google-docs-with-comments-out.html +++ b/test/integration/fixtures/documents/google-docs-with-comments-out.html @@ -3,7 +3,7 @@ -This is a heading
+This is a heading
diff --git a/test/integration/fixtures/documents/markdown-out.html b/test/integration/fixtures/documents/markdown-out.html index c1237925a750b..31fa8dacbebf0 100644 --- a/test/integration/fixtures/documents/markdown-out.html +++ b/test/integration/fixtures/documents/markdown-out.html @@ -1,5 +1,5 @@ -This is a heading with italic
+This is a heading with italic
@@ -11,7 +11,7 @@This is a heading with italic
-Lists
+Lists
@@ -47,7 +47,7 @@Lists
-Table
+Table
@@ -59,7 +59,7 @@Table
-Quote
+Quote
@@ -73,7 +73,7 @@Quote
-Code
+Code
diff --git a/test/integration/fixtures/documents/ms-word-out.html b/test/integration/fixtures/documents/ms-word-out.html index 9a5d5fdf557a4..0b1a3e00fe84d 100644 --- a/test/integration/fixtures/documents/ms-word-out.html +++ b/test/integration/fixtures/documents/ms-word-out.html @@ -7,11 +7,11 @@ -This is a heading level 1
+This is a heading level 1
-This is a heading level 2
+This is a heading level 2
diff --git a/test/integration/fixtures/documents/windows.html b/test/integration/fixtures/documents/windows.html index 022cc8f53b0fa..1d6125160ec08 100644 --- a/test/integration/fixtures/documents/windows.html +++ b/test/integration/fixtures/documents/windows.html @@ -1,6 +1,6 @@ -Heading Win
+Heading Win
diff --git a/test/integration/fixtures/documents/wordpress-out.html b/test/integration/fixtures/documents/wordpress-out.html index 03ab224fa1028..c394fa232081d 100644 --- a/test/integration/fixtures/documents/wordpress-out.html +++ b/test/integration/fixtures/documents/wordpress-out.html @@ -1,5 +1,5 @@ -Howdy
+Howdy
@@ -7,7 +7,7 @@Howdy
-More tag
+More tag
@@ -15,7 +15,7 @@More tag
-Shortcode
+Shortcode