Skip to main content

Module shortcode

Module shortcode 

Source
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§

ApplyShortcode
Arguments for Shortcode::Apply.
ButtonItem
One button in a ButtonsShortcode.
ButtonsShortcode
Arguments for Shortcode::Buttons.
GalleryItem
One image in a GalleryShortcode.
GalleryShortcode
Arguments for Shortcode::Gallery.
GridShortcode
Arguments for Shortcode::Grid.
HeroShortcode
Arguments for Shortcode::Hero.
RecentShortcode
Arguments for Shortcode::Recent.
SubscribeShortcode
Arguments for Shortcode::Subscribe.

Enums§

Shortcode
A typed shortcode block.
ShortcodeKind
Identifier for a shortcode kind, used for AST queries (e.g. has_shortcode(&doc, ShortcodeKind::Subscribe) to gate feature detection without scanning source files).