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:
parent
3f8bdb9402
commit
1b244bf273
1 changed files with 1 additions and 9 deletions
|
@ -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(/^> /, '> ') # 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?
|
||||
|
|
Loading…
Reference in a new issue