API / Minn\Extension / Shortcodes

Shortcodes final class

Minn\Extension\Shortcodes · public/minn/src/Minn/Extension/Shortcodes.php · 54 lines

The shortcode syntax in rendered content: [tag], [tag attr="v" flag], [tag]inner[/tag], and [[tag]] as the escaped literal. Unregistered tags stay as written, which is what the reference shows for a plugin that is not installed.

Uses 1
Used by 1

Public

staticapply(string $html, array $registry, Minn\Extension\Seams $seams): string#

Content with the registered shortcodes run.

$registryarray<string, Closure>
staticattributes(string $text): array#

A shortcode's attributes parsed, curly quotes included.

@return array<string, string> named attributes; bare words keyed by position