Package: shortcode
A WordPress-style shortcode engine: register named shortcodes and render
[tag attr="value"]content[/tag] markers inside user-authored content into
arbitrary HTML. Used by CMS and blog content rendering.
Repository: https://github.com/dracory/shortcode
Installation
go get github.com/dracory/shortcode
Features
- Registry for named shortcode handlers.
- Parses self-closing and enclosing shortcodes with attributes.
- Handlers return HTML, rendered in place of the shortcode.
Where It Is Used
CMS page and block content can embed shortcodes; the cmsstore rendering pipeline expands them through this package.