class UrlFinder::MarkdownReader

Find URLs in Markdown strings

Public Instance Methods

urls() click to toggle source

Returns the found URLs @return [Array<String>] the found URLs

# File lib/url_finder/readers/markdown_reader.rb, line 12
def urls
  @urls ||= begin
    html = Kramdown::Document.new(content).to_html
    HTMLReader.new(html).urls
  end
end