new-day-international / reddit

New Day fork of the code that powers reddit.com
Other
3 stars 1 forks source link

Render last comment markdown #231

Open caseydriscoll opened 10 years ago

caseydriscoll commented 10 years ago

From https://github.com/new-day-international/reddit/issues/219

Simple enough, but not sure how how to render a comment. Only have access to the body in link.html

caseydriscoll commented 10 years ago

If I just pass the comment, and try to render it directly, I get this error:

http://pastie.org/8673293

link.py:

item.last_comment = last_comment

link.html:

<p class="comment_text">
    <img src="${thing.last_comment_author.photo_url()}">${thing.last_comment} 
</p>
caseydriscoll commented 10 years ago

The feature is currently working as is, the comment body is displayed without markup rendering. This would only add functionality.