struct

Shortcode::Invocation

Inherits Struct < Value < Object

Represents a single invocation of a shortcode within a document body.

Constructors

new(index : Int32, name : String, params : Hash(String, String), body : String | Nil = nil, block_level : Bool = false)
Source

Instance methods

block_level?
Source
body
Source
index
Source
name
Source
params
Source
placeholder(prefix : String = "SHORTCODE") : String

Returns the HTML comment placeholder string for CommonMark AST preservation.

Source
token_id

Returns the deterministic 12-character SHA-256 token identifier.

Source