Created
October 10, 2010 07:52
-
-
Save osima/619068 to your computer and use it in GitHub Desktop.
Markdownの実装(markdownjを利用)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1>Hello World!</h1> | |
<ul> | |
<li>g100pon</li> | |
<li>gwcamp</li> | |
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// g100pon #15 Markdownの実装 | |
// | |
// requirements : | |
// 1) download markdownj-1.0.2b4-0.3.0.jar from http://sourceforge.net/projects/markdownj/ | |
// 2) locate jar file at ~/.groovy/lib/markdownj-1.0.2b4-0.3.0.jar | |
// | |
import com.petebevin.markdown.* | |
markdowntext = ''' | |
# Hello World! | |
- g100pon | |
- gwcamp | |
''' | |
println new MarkdownProcessor().markdown(markdowntext) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment