Inline rule for parsing [[image source attributes]] and its alignment variants.
Triggered by a BLOCK_OPEN ([[) token. The rule identifies the image
block name (with optional alignment prefix), extracts the image source,
parses remaining attributes, filters unsafe attributes, and extracts the
link attribute for special handling.
Fails if the block name is not an image variant, if no source is provided,
or if ]] is not found.
Inline rule for parsing
[[image source attributes]]and its alignment variants.Triggered by a
BLOCK_OPEN([[) token. The rule identifies the image block name (with optional alignment prefix), extracts the image source, parses remaining attributes, filters unsafe attributes, and extracts thelinkattribute for special handling.Fails if the block name is not an image variant, if no source is provided, or if
]]is not found.