That did the job, thanks! On Monday, July 30, 2012 3:47:31 PM UTC-5, Michael Diamond wrote: > > On Mon, Jul 30, 2012 at 3:56 PM, Bill Seitz <[email protected]> wrote: > >> Here's what I've done: >> * installed python-markdown in my environment >> * included 'safemarkdown': utils.safemarkdown in my globals passed to >> render() in my app code >> * called like $safemarkdown(note.description) in my template which is >> rendering a list of notes >> >> Unfortunately when I view that page output, I get visible/escaped tags >> like <p> in the content. >> >> What am I doing wrong? >> > > You probably want to call $:safemarkdown(note.description) - note the > colon after the $ - this outputs the result of the expression without > escaping it (a second time). > > Michael > > Michael Diamond > [email protected] > www.DigitalGemstones.com >
-- You received this message because you are subscribed to the Google Groups "web.py" group. To view this discussion on the web visit https://groups.google.com/d/msg/webpy/-/LEmorjpc1t0J. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/webpy?hl=en.
