On Mon, May 16, 2011 at 11:34 PM, JayShaffstall <[email protected]>wrote:

> <p>Just enough of rain<br/>
> To bring the smell of silk<br/>
> From umbrellas<br/></p>
>


You can do that in this way:

--- Create a custom markmin dictionary ---

customtags = dict(
                     br=lambda n:'<br>'*int(n),

 template=lambda code:gluon.template.render(code,context=globals()),
                     )


--- Yout markup ---
markup = """
Just enough of rain ``1``:br
To bring the smell of silk ``1``:br
>From Umbrellas ``1``:br
"""

--- alternative markup ---
markup = """
Just enough of rain ``<br>``:template
To bring the smell of silk ``<br>``:template
>From Umbrellas ``<br>``:template
"""

--- rendering ---

{{=MARKMIN(markup, customtags)}}

Reply via email to