use new CSS class in previews

This commit is contained in:
swagg boi 2025-04-11 22:16:34 -04:00
parent 5651d7b208
commit 40cc03a62d
3 changed files with 9 additions and 5 deletions

View File

@ -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

View File

@ -19,8 +19,10 @@
<% if ($draft->{'markdown'}) { =%>
<%== markdown $draft->{'body'} =%>
<% } else { =%>
<%= $draft->{'body'} =%>
<% } =%>
<span class="plain-text">
<%= $draft->{'body'} =%>
</span>
<% } =%>
</div>
<% } =%>
<div class="form-field">

View File

@ -16,8 +16,10 @@
<% if ($draft->{'markdown'}) { =%>
<%== markdown $draft->{'body'} =%>
<% } else { =%>
<%= $draft->{'body'} =%>
<% } =%>
<span class="plain-text">
<%= $draft->{'body'} =%>
</span>
<% } =%>
</div>
<% } =%>
<div class="form-field">