mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
parent
f41b61e259
commit
a662ed4cf8
2 changed files with 4 additions and 3 deletions
|
|
@ -195,10 +195,11 @@ module FormatHelper
|
|||
space_after_headers: true,
|
||||
no_intra_emphasis: true,
|
||||
fenced_code_blocks: true,
|
||||
disable_indented_code_blocks: true
|
||||
disable_indented_code_blocks: true,
|
||||
safe_links_only: true
|
||||
}
|
||||
markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML.new(escape_html: escape_html), options)
|
||||
markdown.render(text).html_safe
|
||||
sanitize(markdown.render(text))
|
||||
end
|
||||
|
||||
def markdown_hint(text='')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue