use new CSS class in previews
This commit is contained in:
parent
5651d7b208
commit
40cc03a62d
@ -62,7 +62,7 @@ tests locally:
|
||||
## TODOs
|
||||
|
||||
- Do the if-markdown-else-plaintext stuff in templates
|
||||
- Non-markdown posts will need to handle whitespace/newlines with CSS stuff
|
||||
- `plain-text` CSS class may need bottom padding
|
||||
- Do I need `SUM` for `by_id()`?
|
||||
|
||||
## AGPL-3.0+ANTIFA compliance
|
||||
|
@ -19,7 +19,9 @@
|
||||
<% if ($draft->{'markdown'}) { =%>
|
||||
<%== markdown $draft->{'body'} =%>
|
||||
<% } else { =%>
|
||||
<span class="plain-text">
|
||||
<%= $draft->{'body'} =%>
|
||||
</span>
|
||||
<% } =%>
|
||||
</div>
|
||||
<% } =%>
|
||||
|
@ -16,7 +16,9 @@
|
||||
<% if ($draft->{'markdown'}) { =%>
|
||||
<%== markdown $draft->{'body'} =%>
|
||||
<% } else { =%>
|
||||
<span class="plain-text">
|
||||
<%= $draft->{'body'} =%>
|
||||
</span>
|
||||
<% } =%>
|
||||
</div>
|
||||
<% } =%>
|
||||
|
Loading…
x
Reference in New Issue
Block a user