In RakuAST::Doc::Paragraph§

See primary documentation in context for method atoms.

.put for $paragraphs.atoms;
# Text before ␤B<and>␤ after markup␤

Returns the atoms of the paragraph. These are generally a mix of strings and RakuAST::Doc::Markup objects.

In RakuAST::Doc::Markup§

See primary documentation in context for method atoms.

.say for $markup.atoms;  # and␤

Returns a List of the atoms. Note that each element can either be a string or another RakuAST::Doc::Markup object.