Text parser: Gutenberg blocks - Yoast/javascript GitHub Wiki
[draft]
Data available in the analysis
For all supported blocks, the following data is sent to the analysis:
attributes
content
: the main HTML-content of the block (e.g. paragraph, heading content).- any other block-specific attributes, see below
clientId
: locally unique block identifier, used for e.g. markings.name
: type of block, e.g.core/paragraph
for Gutenberg paragraphs.
Additional supported/unsupported attributes for specific block types are listed below.
Supported block types
The block types below are included in our analysis. Additionally, some block types have specific attributes. For these, ✅ means that a specific attribute is supported in the analysis, while 🚫 indicates that they're not supported.
- image
- ✅
alt
: alt text of images, used in keyword-in-alt-text-assessment. - 🚫
caption
: the caption displayed below the image
- ✅
- paragraph
- heading
- ✅
level
: heading level, used in single-H1-assessment.
- ✅