Sha256: d7cba0fed567f4e5c745133d83d883f19f8abe1163032be99dcb22a5041dc334
Contents?: true
Size: 420 Bytes
Versions: 1
Compression:
Stored size: 420 Bytes
Contents
# frozen_string_literal: true require 'kramdown' require 'url_finder/readers/base_reader' require 'url_finder/readers/html_reader' module UrlFinder # Find URLs in Markdown strings class MarkdownReader < BaseReader # Returns the found URLs # @return [Array<String>] the found URLs def urls html = Kramdown::Document.new(content).to_html @urls ||= HTMLReader.new(html).urls end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
url_finder-0.1.0 | lib/url_finder/readers/markdown_reader.rb |