Markup.Carve.Slot (Markup.Carve v0.1.0)

Copy Markdown View Source

One named slot of an extension node (Markup.Carve.BlockExtension or Markup.Carve.InlineExtension), holding its content nodes. An extension's slots field is a list of these, in the tree's key order.

Extensions render from their slots, so edit slot content to change what a claimed extension renders; fallback only renders when nothing claims it.

Summary

Types

t()

@type t() :: %Markup.Carve.Slot{name: String.t(), nodes: [struct()]}