Open flaix opened 7 years ago
Hehe. I suppose that's true. Another engine to consider is Atlassian Commonmark.
Flexmark-java is actually a fork of Atlassian Commonmark. I am currently reading up on the differences to see if that fork would bring any benefit. Right now flexmark-java couldn't be used as it requires Java8, while Gitblit still works on Java7. But it will be downgraded to java7 in the next release (or so it is planned).
Atlassian Commonmark seems like the better bet to me. As for J7 vs. J8, JGit is considering (or already did) drop J7 support. I don't have a problem requiring J8.
Well, I wouldn't want to force Java8 on Gitblit just because of a Markdown parser. I guess it boils down to which library supports all the Markdown extensions currently supported in Gitblit (and then some). But going with something Common Mark compatible sounds like a good idea. If it gets faster than Pegdown, then switching to something else eventually is probably the way to go.
FYI I just confirmed JGit 4.6, due to drop in a week or so, requires J8.
4.6? I thought it is at 4.4, what happend to 4.5. Gitblit uses 4.1, so maybe 4.4 is a possibility to delay requiring J8 a little more. =) I have the feeling that moving to J8 will break a few Gitblit installations on NAS systems.
4.5 was released in September.
Gitblit uses Pegdown in version 1.5.0 for Markdown processing. Pegdown has been deprecated today. This begs the question how to react to this.
@gitblit, since you prefer to support the underdogs, do you have any other Markdown processor in mind that would be an alternative in point 3?