Grails Markdown Plugin

  • Tags: editors, markup language
  • Latest: 1.1.1
  • Last Updated: 13 August 2013
  • Grails version: 1.3.5 > *
  • Authors: Ted Naleid, Phil DeJarnett
3 votes
Dependency:
compile ":markdown:1.1.1"

 Documentation  Source  Issues

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 basics

Thanks 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:

<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>

See the markdown syntax page for syntax basics