diff --git a/app/models/chunks/category.rb b/app/models/chunks/category.rb index 7165a26f..95010d03 100755 --- a/app/models/chunks/category.rb +++ b/app/models/chunks/category.rb @@ -18,14 +18,18 @@ class Category < Chunk::Abstract @list = match_data[2].split(',').map { |c| c.strip } end - # Mark this chunk's start and end points but allow the terms - # after the ':' to be marked up. - def mask(content) pre_mask + list.join(', ') + post_mask end - # If the chunk is hidden, erase the mask and return this chunk # otherwise, surround it with a 'div' block. def unmask(content) - replacement = ( hidden ? '' : '