1
0

markdown.rb 432 B

1234567891011121314151617
  1. module Docs
  2. class Markdown < UrlScraper
  3. self.name = 'Markdown'
  4. self.type = 'markdown'
  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. end
  14. end