[devdocsgjs/main: 1142/1867] Fix markdown, I did not needed to modified its release version




commit 5dfdd5a80f10603a76a0d92b41ea5288854c0858
Author: MasterEnoc <brianhernandez222 hotmail com>
Date:   Sat Nov 14 11:19:28 2020 -0600

    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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]