In RakuAST::Doc::Block§

See primary documentation in context for method allowed-markup.

my %*OK := $block.allowed-markup;
say "B markup is allowed" if %*OK<B>;

Returns a special purpose Map that can be checked to see whether a given markup type is allowed in the block, assuming RakuDoc semantics. Usually bound to a dynamic variable, so it can be accessible for rendering all inner RakuAST::Doc::Markup objects.

Three types of Maps can be returned:

  • a real Map from the :allow configuration

  • a subclass of Map that returns True for all uppercase letters

  • a subclass of Map that always returns False