5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-15 04:41:43 +00:00

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
def value
markdown = ReverseMarkdown.convert(self[:value]).strip
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
self[:value] || document.content || default_value
end
def front_matter?