Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Any java markdown library favor github syntax?

I am looking for a java library for rendering markdown file which favor the github markdown syntax.

Specifically I need it supports github's code block style (not supported in standard markdown):

```javascript
alert("hello world")
```
like image 500
Gelin Luo Avatar asked Feb 27 '13 22:02

Gelin Luo


2 Answers

You might look at https://github.com/sirthias/pegdown it appears to have some support for the GitHub flavor - including code blocks.

like image 69
cjstehno Avatar answered Oct 27 '22 12:10

cjstehno


I ended up choosing https://code.google.com/p/markdown4j/ in my project https://github.com/greenlaw110/rythm-website which is running at http://rythmengine.org/

like image 2
Gelin Luo Avatar answered Oct 27 '22 13:10

Gelin Luo