Grails Markdown Plugin
Dependency :
compile ":markdown:1.0.0.RC1"
Summary
A Grails plugin to provide tag library and service support for markdown. It can be used both for converting markdown into HTML, as well as converting HTML back into markdown.You can either use the body of the tag to hold the markdown:<markdown:renderHtml>This is a test of markdown.</markdown:renderHtml>renders:<p>This is a <em>test</em> of markdown.</p>Or the "text" attribute:<markdown:renderHtml text="Yet another markdown test."/>renders:<p>Yet <strong>another</strong> markdown test.</p>It also adds a <code>markdownToHtml()</code> method to the String class.See http://daringfireball.net/projects/markdown/basics for syntax basicsThanks to @dani_latorre for the patch adding markdownToHtml functionality on the String class and Phil DeJarnett for significant changes/upgrades to Pegdown as well as the Remark html-markdown round trip functionality.
Full documentation can be seen on <a href="https://bitbucket.org/tednaleid/grails-markdown"> the bitbucket source repo</a>.
Description
Simple grails plugin to provide tag library support for markdown.You can either use the body of the tag to hold the markdown:
renders:
Or the "text" attribute:
renders:
See the markdown syntax page for syntax basics
<markdown:renderHtml>This is a *test* of markdown.</markdown:renderHtml>
<p>This is a <em>test</em> of markdown.</p>
<markdown:renderHtml text="Yet **another** markdown test."/><p>Yet <strong>another</strong> markdown test.</p>