tag:blogger.com,1999:blog-36815431.post2179658599712237355..comments2020-02-18T10:49:02.435-06:00Comments on Inching Forward: Adding Markdown support to Clabango templatesmjhttp://www.blogger.com/profile/01534954159169119635noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-36815431.post-80993646947020292082013-08-17T14:48:39.977-05:002013-08-17T14:48:39.977-05:00Really glad it's useful. I've ran into a l...Really glad it's useful. I've ran into a lot of annoyances when I started developing web apps in Clojure, so I figured I'd make life easier for others. :)Anonymoushttps://www.blogger.com/profile/10723755439640978260noreply@blogger.comtag:blogger.com,1999:blog-36815431.post-62785514485328472982013-08-15T12:43:21.817-05:002013-08-15T12:43:21.817-05:00Thanks for the comment Dmitri. I've been usin...Thanks for the comment Dmitri. I've been using Luminus (and Selmer) for my <a href="https://github.com/inchingforward/adventure" rel="nofollow">latest project</a>--I even ran into the "safe" issue earlier and went with the filter. <br /><br />I'm really enjoying the work you're doing. Thanks a lot for Luminus and Selmer!mjhttps://www.blogger.com/profile/01534954159169119635noreply@blogger.comtag:blogger.com,1999:blog-36815431.post-31607915848786349692013-08-15T12:36:27.042-05:002013-08-15T12:36:27.042-05:00Glad you like markdown-clj :)
If you're using...Glad you like markdown-clj :)<br /><br />If you're using Selmer you could add a markdown filter as follows:<br /><br />(add-filter! :markdown (fn [s] [:safe (md-to-html-string s)]))<br /><br />not that Selmer escapes the injected content by default. You have to put the content you don't wish escaped in a vector starting with the <b>:safe</b> keyword.<br /><br />Alternatively you can chain the filter with the <b>safe</b> filter:<br /><br />{{content|markdown|safe}}Anonymoushttps://www.blogger.com/profile/10723755439640978260noreply@blogger.com