Merge branch 'kb_development' into kb_migration
This commit is contained in:
commit
053fd66e97
2 changed files with 11 additions and 1 deletions
|
@ -81,6 +81,10 @@
|
||||||
ol {
|
ol {
|
||||||
list-style-type: decimal;
|
list-style-type: decimal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sup {
|
||||||
|
vertical-align: super;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.reply-indicator__content {
|
.reply-indicator__content {
|
||||||
|
|
|
@ -171,9 +171,11 @@ class TextFormatter
|
||||||
@markdown ||= Redcarpet::Markdown.new(@htmlobj,
|
@markdown ||= Redcarpet::Markdown.new(@htmlobj,
|
||||||
autolink: false,
|
autolink: false,
|
||||||
tables: false,
|
tables: false,
|
||||||
underline: true,
|
|
||||||
disable_indented_code_blocks: false,
|
disable_indented_code_blocks: false,
|
||||||
fenced_code_blocks: true,
|
fenced_code_blocks: true,
|
||||||
|
strikethrough: true,
|
||||||
|
superscript: true,
|
||||||
|
underline: true,
|
||||||
highlight: false
|
highlight: false
|
||||||
)
|
)
|
||||||
@markdown.render(html)
|
@markdown.render(html)
|
||||||
|
@ -196,6 +198,10 @@ class TextFormatter
|
||||||
"<p>#{text}</p>"
|
"<p>#{text}</p>"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def underline(text)
|
||||||
|
text.include?(':') ? nil : '<u>' + text + '</u>'
|
||||||
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def process_program_code(code)
|
def process_program_code(code)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue