public static boolean isMarkdown(String name) {
      if (TextUtils.isEmpty(name)) {
          return false;
      }

      name = name.toLowerCase(US);
      for (String extension : MARKDOWN_EXTENSIONS) {
          if (name.endsWith(extension)) {
              return true;
          }
      }

      return false;
  }
Is the the given file name a Markdown file?

@param name
@return true if the name has a markdown extension, false otherwise
app/src/main/java/com/github/pockethub/android/util/MarkdownUtils.java