"Show MD" fix

This commit is contained in:
jetstream0
2023-09-16 00:17:41 -04:00
parent 629cb24e90
commit e46382d6ee
2 changed files with 6 additions and 5 deletions

View File

@@ -20,6 +20,10 @@
border-radius: 3px; border-radius: 3px;
} }
pre {
white-space: pre-wrap;
}
img { img {
max-width: 85%; max-width: 85%;
} }

View File

@@ -24,15 +24,12 @@
</div> </div>
<div id="post-md"> <div id="post-md">
[[ for:post.md_lines:line ]] [[ for:post.md_lines:line ]]
[[ line ]] <p><pre>[[ line ]]</pre></p>
[[ if:line ]]
<br>
[[ endif ]]
[[ endfor ]] [[ endfor ]]
</div> </div>
[[ if:post.slug:!next_post.slug ]] [[ if:post.slug:!next_post.slug ]]
<div id="next-post-container"> <div id="next-post-container">
<a href="/posts/[[ next_post.slug ]]">Next Post: [[ next_post.title ]]</a> <a href="/posts/[[ next_post.slug ]]">Next Post: [[ next_post.title ]]</a>
</div> </div>
[[ endif ]] [[ endif ]]
[[ component:makoto-styling ]] [[ component:makoto-styling ]]