permitir html por ahora

This commit is contained in:
f 2019-11-14 14:29:07 -03:00
parent 3f8bdb9402
commit 1b244bf273
No known key found for this signature in database
GPG key ID: 2AE5A13E321F953D

View file

@ -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(/^&gt; /, '> ') # 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?