import java.io.StringReader;
import java.io.StringWriter;
import org.tautua.markdownpapers.Markdown;
import org.tautua.markdownpapers.parser.ParseException;
public class soManyJars {
static String markdownText="# B3log Solo Markdown Editor";
public static void main(String[] args) {
// TODO Auto-generated method stub
StringWriter writer = new StringWriter();
Markdown markdown = new Markdown();
try {
markdown.transform(new StringReader(markdownText), writer);
} catch (final ParseException e) {
}
System.out.println(writer.toString());
}
}
output:
<h1> B3log Solo Markdown Editor</h1>
源代码:http://pan.baidu.com/share/link?shareid=998379519&uk=3878681452