2014-07-27 21:58:24 +02:00
|
|
|
module Docs
|
|
|
|
class Markdown < UrlScraper
|
|
|
|
self.name = 'Markdown'
|
2018-10-07 17:07:55 +02:00
|
|
|
self.type = 'simple'
|
2020-11-09 17:01:45 +01:00
|
|
|
self.base_url = 'https://daringfireball.net/projects/markdown/syntax'
|
2014-07-27 21:58:24 +02:00
|
|
|
|
|
|
|
html_filters.push 'markdown/clean_html', 'markdown/entries'
|
|
|
|
|
|
|
|
options[:container] = '.article'
|
|
|
|
options[:skip_links] = true
|
|
|
|
|
|
|
|
options[:attribution] = <<-HTML
|
|
|
|
© 2004 John Gruber<br>
|
|
|
|
Licensed under the BSD License.
|
|
|
|
HTML
|
2019-03-10 01:10:31 +01:00
|
|
|
|
2019-03-10 03:02:24 +01:00
|
|
|
def get_latest_version(opts)
|
2020-11-14 18:19:28 +01:00
|
|
|
'1.0.0'
|
2019-03-10 01:10:31 +01:00
|
|
|
end
|
2014-07-27 21:58:24 +02:00
|
|
|
end
|
|
|
|
end
|