Class: PublifyApp::Textfilter::MacroPost

Inherits:
TextFilterPlugin show all
Defined in:
lib/text_filter_plugin.rb

Class Method Summary collapse

Methods inherited from TextFilterPlugin

available_filter_types, available_filters, component_name, config_value, default_config, default_helper_module!, filter_map, filter_type, help_text, inherited, logger, macro_filters, reloadable?, sanitize, short_name

Methods included from PublifyPlugins

#plugin_description, #plugin_display_name, #plugin_public_action, #plugin_public_actions

Class Method Details

.filtertext(text) ⇒ Object



163
164
165
166
167
168
# File 'lib/text_filter_plugin.rb', line 163

def self.filtertext(text)
  macros = TextFilterPlugin.available_filter_types["macropost"]
  macros.reduce(text) do |new_text, macro|
    macro.filtertext(new_text)
  end
end