From 5dfdd5a80f10603a76a0d92b41ea5288854c0858 Mon Sep 17 00:00:00 2001 From: MasterEnoc Date: Sat, 14 Nov 2020 11:19:28 -0600 Subject: [PATCH] Fix markdown, I did not needed to modified its release version --- lib/docs/scrapers/markdown.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/docs/scrapers/markdown.rb b/lib/docs/scrapers/markdown.rb index 37994d1a..2e142cfd 100644 --- a/lib/docs/scrapers/markdown.rb +++ b/lib/docs/scrapers/markdown.rb @@ -2,7 +2,6 @@ module Docs class Markdown < UrlScraper self.name = 'Markdown' self.type = 'simple' - self.release = '1.0.1' self.base_url = 'https://daringfireball.net/projects/markdown/syntax' html_filters.push 'markdown/clean_html', 'markdown/entries' @@ -16,8 +15,7 @@ module Docs HTML def get_latest_version(opts) - doc = fetch_doc('http://daringfireball.net/projects/markdown', opts) - doc.at_css('.article p a').content.scan(/\d\.\d*\.*\d*\.*\d*\.*/)[0] + '1.0.0' end end end