How To Use Markdown With Grails
2009-11-24 11:10:40 | 0 Comment
In order to learn how Grails works I wanted to create something with it and it should have been something that I don't regret and something useful and I can use so I have decided to develop a project management application with Grails. So far it's going good. Ofcourse open source! :) I needed to use markdown with Grails, there is a plugin for that but it requires Grails 1.2 which is unstable. And then I remembered that I could use Java libraries with Grails since it's based on Groovy.
I made some searches and found [markdownj](http://code.google.com/p/markdownj/). There is only two things you need to do in order to use markdownj with your Grails project. Just download it and move the .jar to your app/lib directory.
After that you are good to go and use markdownj library with your Grails application as simple as the following codes:
com.petebevin.markdown.MarkdownProcessor m = new com.petebevin.markdown.MarkdownProcessor();
println m.markdown("I am using **markdown** with lovely [Grails](http://www.grails.org)")
And you get the result as:
I am using markdown with lovely Grails
Enjoy! :)
Check my latest project compector.com where you can post references about your former employers and see what others have said about the future employers. Sign up now and post a reference and share it on twitter or facebook.


Comments
Leave a Response