diff --git a/README.md b/README.md index 5d60a7b..0846d05 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,6 @@ tests locally: ## TODOs -- Check mod/admin templates for if-markdown - Fix preview tests - Do I need `SUM` for `by_id()`? diff --git a/templates/moderator/remark_by_id.html.ep b/templates/moderator/remark_by_id.html.ep index 253f9de..f4485b7 100644 --- a/templates/moderator/remark_by_id.html.ep +++ b/templates/moderator/remark_by_id.html.ep @@ -10,7 +10,11 @@
<%= $remark->{'author'} %>
+ <% if ($remark->{'markdown'}) { =%> <%== markdown $remark->{'body'} =%> + <% } else { =%> + <%= $remark->{'body'} %> + <% } =%>