class Pettanr.PettanrSimpleFormat class Pettanr.PettanrSimpleFormat.RendererModule escapeHTML: (t) -> $("
").text(t).html() render: (content) -> text = @escapeHTML(content) start_tag = '

' text = text.replace(/\r\n?/g, "\n") text = text.replace(/\n\n+/g, "

") text = text.replace(/\n/g, '\n
') text = text.replace(/\<\/p\>\/g, "

\n\n

") text = start_tag + text + "

" return text