Merge branch 'kb_development' into kb_migration

This commit is contained in:
KMY 2023-03-05 10:21:07 +09:00
commit 053fd66e97
2 changed files with 11 additions and 1 deletions

View file

@ -81,6 +81,10 @@
ol {
list-style-type: decimal;
}
sup {
vertical-align: super;
}
}
.reply-indicator__content {

View file

@ -171,9 +171,11 @@ class TextFormatter
@markdown ||= Redcarpet::Markdown.new(@htmlobj,
autolink: false,
tables: false,
underline: true,
disable_indented_code_blocks: false,
fenced_code_blocks: true,
strikethrough: true,
superscript: true,
underline: true,
highlight: false
)
@markdown.render(html)
@ -196,6 +198,10 @@ class TextFormatter
"<p>#{text}</p>"
end
def underline(text)
text.include?(':') ? nil : '<u>' + text + '</u>'
end
private
def process_program_code(code)