You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently section refs are pretty useless: they can only override the meta block or the title of the base section. However, it's possible to track the position of blocks relative to the base attribute, allowing users to prepend/append content to the base:
I would object to the base attribute position tracking though -- it will be confusing if the order of the attributes (base) is meaningful here but not anywhere else. We should avoid introducing special cases as much as possible, so I wonder if we can come up with a different, clearer, syntax.
Maybe section-specific blocks named prepend and append? They can be just syntactic sugars around embedded section blocks.
if prepend block is specified inside section block, it is treated as an embedded section block that is prepended to the sections / content blocks in the base block
if append block is specified inside section block, it is treated as an embedded section block that is appended to the sections / content blocks in the base block
if any sections / content blocks are defined in the ref block, they override the section / content all blocks in the base block
Currently section refs are pretty useless: they can only override the meta block or the title of the base section. However, it's possible to track the position of blocks relative to the
base
attribute, allowing users to prepend/append content to the base:Produces
A\nB\nC\n
The text was updated successfully, but these errors were encountered: