Merge pull request #1386 from tsigo/github_markup

Use GitHub::Markup to parse markup files
This commit is contained in:
Dmitriy Zaporozhets 2012-09-09 03:34:50 -07:00
commit 2e8b5ebefd
7 changed files with 34 additions and 9 deletions

View file

@ -24,4 +24,14 @@ module TreeHelper
content.name
end
end
# Public: Determines if a given filename is compatible with GitHub::Markup.
#
# filename - Filename string to check
#
# Returns boolean
def markup?(filename)
filename.end_with?(*%w(.mdown .md .markdown .textile .rdoc .org .creole
.mediawiki .rst .asciidoc .pod))
end
end