title: HTML to Markdown with Java
body: <p>is there an easy way to transform HTML into markdown with JAVA?</p>
  
  <p>I am currently using the Java <strong><a href="http://code.google.com/p/markdownj/" rel="noreferrer">MarkdownJ</a></strong> library to transform markdown to html.</p>
  
  <pre><code>import com.petebevin.markdown.MarkdownProcessor;
  ...
  public static String getHTML(String markdown) {
      MarkdownProcessor markdown_processor = new MarkdownProcessor();
      return markdown_processor.markdown(markdown);
  }
  
  public static String getMarkdown(String html) {
  /* TODO Ask stackoverflow */
  }
  </code></pre>