bigins/scriptor-markdown-containers is a new standalone plugin that adds fenced-container syntax to page Markdown. Write :::note, :::warning, or :::details "Summary" in a page's content and the plugin renders each as a styled block with a theme-neutral CSS class. It's for sites that want callouts, admonitions, and collapsible sections in editor-authored content without dropping raw HTML into the page body.

What changed

  • Fenced containers in content. :::note, :::warning, :::details, and your own custom types. Containers nest, and ::: lines inside a fenced code block are left untouched so you can document the syntax itself.
  • Theme-neutral output through the Sanitizer. Each block renders with a BEM class (default base md-container); ship the bundled assets/containers.css for the default look, or remap each type onto your own framework (e.g. noteuk-alert) under plugins.markdown_containers.
  • Composes with any content. It hooks the frontend ContentRendering event, so it works on both database pages and scriptor-markdown-pages content.
  • Stateless. It owns no database schema, so there's no bin/scriptor plugin:install step and composer remove is the complete uninstall.

Install

Not on Packagist, so register the VCS repo, then require:

composer config repositories.scriptor-markdown-containers \
  vcs https://github.com/bigin/scriptor-markdown-containers
composer require bigins/scriptor-markdown-containers:^0.1

Discovery is automatic via installed.json; no theme code changes are needed. Copy assets/containers.css into your theme for the default styling, or map the classes onto your own CSS framework.