permitir html por ahora
This commit is contained in:
parent
3f8bdb9402
commit
1b244bf273
1 changed files with 1 additions and 9 deletions
|
@ -10,15 +10,7 @@ class MetadataContent < MetadataTemplate
|
||||||
end
|
end
|
||||||
|
|
||||||
def value
|
def value
|
||||||
markdown = ReverseMarkdown.convert(self[:value]).strip
|
self[:value] || document.content || default_value
|
||||||
markdown = nil if markdown.blank?
|
|
||||||
|
|
||||||
sanitize(markdown || document.content || default_value,
|
|
||||||
sanitize_options)
|
|
||||||
.tr("\r", '') # eliminar retornos de carro
|
|
||||||
.gsub(/^> /, '> ') # convertir citas de vuelta a citas
|
|
||||||
.gsub(/ \n /, "\n") # eliminar dobles saltos de línea
|
|
||||||
.gsub(/^ $/, '') # eliminar saltos de línea solitarios
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def front_matter?
|
def front_matter?
|
||||||
|
|
Loading…
Reference in a new issue