mirror of https://github.com/freeCodeCamp/devdocs
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
432 B
18 lines
432 B
11 years ago
|
module Docs
|
||
|
class Markdown < UrlScraper
|
||
|
self.name = 'Markdown'
|
||
|
self.type = 'markdown'
|
||
|
self.base_url = 'http://daringfireball.net/projects/markdown/syntax'
|
||
|
|
||
|
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
|
||
|
end
|
||
|
end
|