Class: Decidim::ContentParsers::MentionResourceParser

Inherits:
TagParser show all
Defined in:
decidim-core/lib/decidim/content_parsers/mention_resource_parser.rb

Overview

A parser that searches resource mentions in content.

A word starting with ‘/` will be considered as a possible mention if they only contains letters, numbers or underscores.

Constant Summary

Constants inherited from BaseParser

BaseParser::Metadata

Instance Attribute Summary

Attributes inherited from BaseParser

#content, #context

Method Summary

Methods inherited from TagParser

#rewrite

Methods inherited from BaseParser

#initialize, #metadata, #rewrite

Methods included from Decidim::ContentProcessor::Common

#html_content?, #html_fragment

Constructor Details

This class inherits a constructor from Decidim::ContentParsers::BaseParser