views:

57

answers:

1

I'm thinking on adding Markdown to a Java project with using:

  • Tapestry 5
  • Spring
  • Maven
  • ( Among other technologies )

Q1. What javascript library can I use for the client side? I'm thinking on using Cletus' port of MarkDownSharp for the backend.

Q2. What strategy should I follow to add JMD to my project? My code it's a Maven project already. If JMD were available for maven I would just create a dependency on that, but it is not. So, should I merge it with my code base?

Thanks in advance.

+2  A: 

What javascript library can I use for the client side? I'm thinking on using Cletus' port of MarkDownSharp

ShowDown, WMD (still not open sourced) and markItUp! seem to be the most famous options, the later being maybe the closest to what you're looking for.

What strategy should I follow to add JMD to my code base (it is a Maven project already). If it were available for maven I would just create a dependency on that, but In this case, Should I merge it with my code base?

Hmm... what? I'm not sure I understood the question, but I'll try. If JMD is available in a known repository, just add a dependency on it. If it isn't I would get the sources and add them to my codebase as a module (not a bid deal, there are less than 10 classes) and sync them from time to time.

Related questions

Pascal Thivent
I meant the later. JMD is not in a know repository. So, yeah, I'll add the code into my own. BTW I've found the javascript library used in SO: http://code.google.com/p/wmd-new/
OscarRyz
@Oscar Ahhh, ok, got it now :) And thanks for the link.
Pascal Thivent