from file name (esp. extensions), determine source file document type
113 114 115 116 117 118 119
# File 'lib/mdoc.rb', line 113 def find_doc_type(f) case f when /\.(md|markdown)/ Document::Kramdown else Document end end