Plate output#
The plate converter produces the __somersault__ block of Plone Aurora.
The block has an @type and a value, and the value holds every node of the page, in order.
The conversion runs the Slate converter first, and then migrates its result, so the HTML is parsed the same way for both.
The migrations are ports of the ones Aurora applies at runtime.
The sections below also list what collective.html2blocks adds to them, because the Slate converter emits more than those migrations cover.
Blocks#
Volto block |
Plate node |
|---|---|
|
A |
Any block with a |
The nodes of the list. The other keys of the block, such as |
|
A native |
|
A native |
Any other block |
A |
Aurora drops a block that isn't registered in the site.
The converter can't see that registry, so it keeps every block as a ploneBlock node.
Aurora has no slateTable or codeBlock block, so these become native nodes instead.
A table with hideHeaders loses its first row, which is the hidden header, and the style options of the table are left out.
The plate converter enables codeBlock, so that fenced code keeps its lines and its language.
To turn this off, disable the block type.
A <pre> then goes through the Slate converter.
Marks#
Plate stores marks on the text nodes.
Slate element |
Plate mark |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Links#
A link node becomes an a node, and data.url and data.target become its url and target.
data.title is left out, like in Aurora.
Lists#
A ul or ol becomes paragraphs with the indent and listStyleType attributes.
listStyleType is disc or decimal.
The first item of an ol has listRestartPolite, and each following item of a list has listStart.
The indent of a nested list is its depth.
In a list item with several blocks, the first block carries the list marker, and the others only have the indent.
Quotes#
The text and the inline nodes of a blockquote are wrapped in paragraphs.
Code#
A pre node becomes a code_block node, with one code_line child per line.
Block width#
Each top-level native node gets a blockWidth.
A node without a valid width gets default.
The valid widths are narrow, default, layout and full.
Nodes without a Plate equivalent#
Other node types, such as the dl, dt and dd of a definition list, stay in the value as they are.
This is what Aurora does as well.