mirror of
https://github.com/freeCodeCamp/devdocs
synced 2024-11-16 19:48:10 +01:00
21 lines
487 B
Ruby
21 lines
487 B
Ruby
module Docs
|
|
class Markdown < UrlScraper
|
|
self.name = 'Markdown'
|
|
self.type = 'simple'
|
|
self.base_url = 'https://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
|