Skip to content

Instantly share code, notes, and snippets.

@lyhcode
Created November 13, 2011 01:21
Show Gist options
  • Save lyhcode/1361439 to your computer and use it in GitHub Desktop.
Save lyhcode/1361439 to your computer and use it in GitHub Desktop.
Groovy + MarkdownJ (GrabResolver)
@GrabResolver(name='scala-tools', root='http://scala-tools.org/repo-releases')
@Grab('org.markdownj:markdownj:0.3.0-1.0.2b4')
import com.petebevin.markdown.MarkdownProcessor
def m = new MarkdownProcessor()
println m.markdown('''
Heading
=======
* item1
* item2
* item3
''')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment