History

Fix markdown, I did not needed to modified its release version

MasterEnoc committed 6 years ago

Commit 5dfdd5a1 parent 4ab95dc1 file · +1 −3Browse files

Unified · Split

lib/docs/scrapers/markdown.rb+1−3
@@ -2,7 +2,6 @@ module Docs · 1 unmodified line
2 class Markdown < UrlScraper2 class Markdown < UrlScraper
3 self.name = 'Markdown'3 self.name = 'Markdown'
4 self.type = 'simple'4 self.type = 'simple'
5 self.release = '1.0.1'
6 self.base_url = 'https://daringfireball.net/projects/markdown/syntax'5 self.base_url = 'https://daringfireball.net/projects/markdown/syntax'
7 6
8 html_filters.push 'markdown/clean_html', 'markdown/entries'7 html_filters.push 'markdown/clean_html', 'markdown/entries'
@@ -16,8 +15,7 @@ module Docs · 7 unmodified lines
16 HTML15 HTML
17 16
18 def get_latest_version(opts)17 def get_latest_version(opts)
19 doc = fetch_doc('http://daringfireball.net/projects/markdown', opts)18 '1.0.0'
20 doc.at_css('.article p a').content.scan(/\d\.\d*\.*\d*\.*\d*\.*/)[0]
21 end19 end
22 end20 end
23end21end