HTML to Markdown with Java

Posted by Sergio del Amo on Stack Overflow See other posts from Stack Overflow or by Sergio del Amo
Published on 2008-09-12T17:23:32Z Indexed on 2010/04/30 16:47 UTC
Read the original article Hit count: 404

Filed under:
|
|

is there an easy way to transform HTML into markdown with JAVA?

I am currently using the Java MarkdownJ library to transform markdown to html.

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 */
}

© Stack Overflow or respective owner

Related posts about java

Related posts about markdown