fix Code blocks err #227 (#323)

* fix Code blocks https://github.com/redlib-org/redlib/issues/227

* add pulldown-cmark

* add pulldown-cmark

* fix Code blocks err #227

* add pre style for post codeblock

* Update style.css (fix Code blocks err #227 )

---------

Co-authored-by: Matthew Esposito <matt@matthew.science>
This commit is contained in:
freedit-dev
2025-02-03 13:58:14 +08:00
committed by GitHub
parent c7f55c146a
commit 7770c57856
4 changed files with 36 additions and 1 deletions

View File

@ -1199,6 +1199,13 @@ a.search_subreddit:hover {
overflow-wrap: anywhere;
}
.post_body pre {
background: var(--background);
overflow-x: auto;
margin: 10px 0;
padding: 10px;
}
.post_body img {
max-width: 100%;
display: block;