Expand description
Typed shortcode AST nodes.
Each shortcode is a closed enum variant with fully-typed arguments. Variants land per-shortcode in Phase B (one variant per migration commit) of the typed-AST migration.
Migration order (Phase B): Subscribe, Buttons, Gallery, Hero, Grid, Recent.
Structs§
- Apply
Shortcode - Arguments for
Shortcode::Apply. - Button
Item - One button in a
ButtonsShortcode. - Buttons
Shortcode - Arguments for
Shortcode::Buttons. - Gallery
Item - One image in a
GalleryShortcode. - Gallery
Shortcode - Arguments for
Shortcode::Gallery. - Grid
Shortcode - Arguments for
Shortcode::Grid. - Hero
Shortcode - Arguments for
Shortcode::Hero. - Recent
Shortcode - Arguments for
Shortcode::Recent. - Subscribe
Shortcode - Arguments for
Shortcode::Subscribe.
Enums§
- Shortcode
- A typed shortcode block.
- Shortcode
Kind - Identifier for a shortcode kind, used for AST queries (e.g.
has_shortcode(&doc, ShortcodeKind::Subscribe)to gate feature detection without scanning source files).