class MarkdownHelper implements Helper<Object> {

  @Override
  public Object apply(final Object context, final Options options)
      throws IOException {
    if (options.isFalsy(context)) {
      return "";
    }
    String markdown = context.toString();
    PegDownProcessor processor = new PegDownProcessor();
    return new Handlebars.SafeString(processor.markdownToHtml(markdown));
  }

}