Search code examples
javamaven-2markdownjavascript

What do I need to use Markdown in a Java webapp?


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

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

Questions:

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

  2. 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?


Solution

  • 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