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.
22 lines
486 B
22 lines
486 B
module Docs
|
|
class Markdown < UrlScraper
|
|
self.name = 'Markdown'
|
|
self.type = 'simple'
|
|
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
|
|
|
|
def get_latest_version(opts)
|
|
'1.0.0'
|
|
end
|
|
end
|
|
end
|