mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-18 19:16:00 +01:00
Remove raw markdown options
This commit is contained in:
parent
7650bae75c
commit
f5050971e9
2 changed files with 2 additions and 11 deletions
|
@ -28,8 +28,8 @@ module MarkdownHelper
|
|||
end
|
||||
|
||||
def raw_markdown(content)
|
||||
renderer = Redcarpet::Render::HTML.new(MARKDOWN_RENDERER_OPTS)
|
||||
md = Redcarpet::Markdown.new(renderer, RAW_MARKDOWN_OPTS)
|
||||
renderer = Redcarpet::Render::HTML.new(**MARKDOWN_RENDERER_OPTS)
|
||||
md = Redcarpet::Markdown.new(renderer, **MARKDOWN_OPTS)
|
||||
raw md.render content
|
||||
end
|
||||
|
||||
|
|
|
@ -22,15 +22,6 @@ MARKDOWN_RENDERER_OPTS = {
|
|||
hard_wrap: true,
|
||||
}.freeze
|
||||
|
||||
RAW_MARKDOWN_OPTS = {
|
||||
tables: true,
|
||||
fenced_code_blocks: true,
|
||||
autolink: true,
|
||||
disable_indented_code_blocks: true,
|
||||
strikethrough: true,
|
||||
superscript: false,
|
||||
}.freeze
|
||||
|
||||
ALLOWED_HOSTS_IN_MARKDOWN = [
|
||||
APP_CONFIG["hostname"],
|
||||
*APP_CONFIG["allowed_hosts_in_markdown"]
|
||||
|
|
Loading…
Reference in a new issue