markdown.rb 486 B

123456789101112131415161718192021
  1. module Docs
  2. class Markdown < UrlScraper
  3. self.name = 'Markdown'
  4. self.type = 'simple'
  5. self.base_url = 'http://daringfireball.net/projects/markdown/syntax'
  6. html_filters.push 'markdown/clean_html', 'markdown/entries'
  7. options[:container] = '.article'
  8. options[:skip_links] = true
  9. options[:attribution] = <<-HTML
  10. &copy; 2004 John Gruber<br>
  11. Licensed under the BSD License.
  12. HTML
  13. def get_latest_version(opts)
  14. '1.0.0'
  15. end
  16. end
  17. end