Method: Ksk::Markdown#text_used_content

Defined in:
app/models/concerns/ksk/markdown.rb

#text_used_content(type) ⇒ Object



4
5
6
7
8
# File 'app/models/concerns/ksk/markdown.rb', line 4

def text_used_content(type)
  Ksk::Markdown.parse_text(markdown_text, type).each_with_object([]) do |match, used_numbers|
    used_numbers << match[1].to_i
  end
end