Module: Thredded::HtmlPipeline::SpoilerTagFilter

Defined in:
lib/thredded/html_pipeline/spoiler_tag_filter.rb

Defined Under Namespace

Classes: AfterMarkup, BeforeMarkup

Constant Summary collapse

PLACEHOLDER_START_CLASS =
'thredded-spoiler-placeholder-start-24uob7bajv5'
PLACEHOLDER_END_CLASS =
'thredded-spoiler-placeholder-end-24uob7bajv5'
PLACEHOLDER_START_BLOCK =
"<p class='#{PLACEHOLDER_START_CLASS}' title='%s'></p>"
PLACEHOLDER_END_BLOCK =
"<p class='#{PLACEHOLDER_END_CLASS}' title='%s'></p>"
PLACEHOLDER_START_SPAN =
"<i class='#{PLACEHOLDER_START_CLASS}' title='%s'></i>"
PLACEHOLDER_END_SPAN =
"<i class='#{PLACEHOLDER_END_CLASS}' title='%s'></i>"

Class Attribute Summary collapse

Class Attribute Details

.spoiler_tags[[String, String]]

Returns Pairs of opening and closing spoiler tags.

Returns:

  • ([[String, String]])

    Pairs of opening and closing spoiler tags.



15
16
17
# File 'lib/thredded/html_pipeline/spoiler_tag_filter.rb', line 15

def spoiler_tags
  @spoiler_tags
end

.spoiler_tags_inverse_replacementsObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



21
22
23
# File 'lib/thredded/html_pipeline/spoiler_tag_filter.rb', line 21

def spoiler_tags_inverse_replacements
  @spoiler_tags_inverse_replacements
end

.spoiler_tags_replacementsObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



18
19
20
# File 'lib/thredded/html_pipeline/spoiler_tag_filter.rb', line 18

def spoiler_tags_replacements
  @spoiler_tags_replacements
end