{ __( 'Explanatory text under the main heading of an article.' ) }
+{ content }
; + }, +} ); diff --git a/blocks/library/subhead/style.scss b/blocks/library/subhead/style.scss new file mode 100644 index 00000000000000..6e6f48e6bf8272 --- /dev/null +++ b/blocks/library/subhead/style.scss @@ -0,0 +1,5 @@ +p.wp-block-subhead { + font-size: 1.1em; + font-style: italic; + opacity: 0.75; +} diff --git a/blocks/test/fixtures/core__subhead.html b/blocks/test/fixtures/core__subhead.html new file mode 100644 index 00000000000000..61cf93189617ec --- /dev/null +++ b/blocks/test/fixtures/core__subhead.html @@ -0,0 +1,3 @@ + +This is a subhead.
+ diff --git a/blocks/test/fixtures/core__subhead.json b/blocks/test/fixtures/core__subhead.json new file mode 100644 index 00000000000000..20e5037001563c --- /dev/null +++ b/blocks/test/fixtures/core__subhead.json @@ -0,0 +1,18 @@ +[ + { + "uid": "_uid_0", + "name": "core/subhead", + "isValid": true, + "attributes": { + "content": [ + "This is a ", + { + "type": "em", + "children": "subhead" + }, + "." + ] + }, + "originalContent": "This is a subhead.
" + } +] diff --git a/blocks/test/fixtures/core__subhead.parsed.json b/blocks/test/fixtures/core__subhead.parsed.json new file mode 100644 index 00000000000000..a36ff7083edec0 --- /dev/null +++ b/blocks/test/fixtures/core__subhead.parsed.json @@ -0,0 +1,11 @@ +[ + { + "blockName": "core/subhead", + "attrs": null,"innerBlocks": [], + "innerHTML": "\nThis is a subhead.
\n" + }, + { + "attrs": {}, + "innerHTML": "\n" + } +] diff --git a/blocks/test/fixtures/core__subhead.serialized.html b/blocks/test/fixtures/core__subhead.serialized.html new file mode 100644 index 00000000000000..23468192081a0c --- /dev/null +++ b/blocks/test/fixtures/core__subhead.serialized.html @@ -0,0 +1,3 @@ + +This is a subhead.
+