Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion modules/forum/src/main/ForumExpand.scala
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import lila.core.config.NetDomain

final class ForumTextExpand(markdown: lila.memo.MarkdownCache)(using Executor, Scheduler):

val markdownOptions = lila.memo.MarkdownOptions.all.copy(header = false, maxPgns = lila.memo.Max(10))
val markdownOptions = lila.memo.MarkdownOptions.all.copy(maxPgns = lila.memo.Max(10))

private def one(post: ForumPost)(using NetDomain): Fu[Frag] =
if post.hasMarkdown then
Expand Down
23 changes: 20 additions & 3 deletions ui/bits/css/forum/_post.scss
Original file line number Diff line number Diff line change
Expand Up @@ -161,13 +161,30 @@
font-size: 1.1rem;
}
.forum-post__message,
.comment-preview {
@include rendered-markdown(1em, 1600px);
.forum-topic .comment-preview {
@include rendered-markdown(1em, 1600px, $h1: false, $h2: false);
@include rendered-markdown--code;
@include rendered-markdown--quote;
@include rendered-markdown--img;
@include rendered-markdown--embed;

h1,
h2 {
font-size: 1.5em;
line-height: 1.5em;
font-weight: bold;
margin-block: 0.5em;
border-bottom: 1px solid $m-border--fade-20;
padding-bottom: 0.3em;
}
h2 {
font-size: 1.4em;
line-height: 1.4em;
border-bottom: 1px solid $m-border--fade-40;
}
h3,
h4 {
font-size: 1.3em;
}
blockquote {
padding: 0.3em 0.7em;
border-left: 0.3em solid;
Expand Down
Loading