poder usar markdown en las etiquetas de las plantillas
This commit is contained in:
parent
f5635aa2c8
commit
f1fa18bfa5
2 changed files with 5 additions and 1 deletions
|
@ -18,4 +18,8 @@ module ApplicationHelper
|
|||
|
||||
"#{f.first}[#{f.last}]"
|
||||
end
|
||||
|
||||
def sanitize_markdown(text, options = {})
|
||||
sanitize(CommonMarker.render_html(text), options)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -126,7 +126,7 @@
|
|||
= fa_icon 'link', title: t('posts.anchor')
|
||||
- if template.private?
|
||||
= fa_icon 'lock', title: t('posts.private')
|
||||
= template.label
|
||||
= sanitize_markdown template.label, tags: %w[a]
|
||||
- if template.help
|
||||
%small.text-muted.form-text= template.help
|
||||
= render "posts/template_field/#{type}", template: template, name: template.key, value: value
|
||||
|
|
Loading…
Reference in a new issue