lib/govspeak.rb in govspeak-5.2.2 vs lib/govspeak.rb in govspeak-5.3.0
- old
+ new
@@ -9,10 +9,11 @@
require 'govspeak/html_validator'
require 'govspeak/html_sanitizer'
require 'govspeak/kramdown_overrides'
require 'govspeak/blockquote_extra_quote_remover'
require 'govspeak/post_processor'
+require 'govspeak/link_extractor'
require 'govspeak/presenters/attachment_presenter'
require 'govspeak/presenters/contact_presenter'
require 'govspeak/presenters/h_card_presenter'
module Govspeak
@@ -90,9 +91,13 @@
Govspeak::HeaderExtractor.convert(kramdown_doc).first
end
def structured_headers
Govspeak::StructuredHeaderExtractor.new(self).call
+ end
+
+ def extracted_links
+ Govspeak::LinkExtractor.new(self).call
end
def preprocess(source)
source = Govspeak::BlockquoteExtraQuoteRemover.remove(source)
@@extensions.each do |title,regexp,block|