class ActionText::Content

def attachments

content.attachments # => [#content = ActionText::Content.new(html)
html = %Q()
attachable = ActiveStorage::Blob.first

Extracts +ActionText::Attachment+s from the HTML fragment:
def attachments
  @attachments ||= attachment_nodes.map do |node|
    attachment_for_node(node)
  end
end