5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-07-04 14:55:45 +00:00

en los artículos nuevos no hay contenido

closes #341
closes #340
closes #339
closes #338
This commit is contained in:
f 2021-02-25 12:02:03 -03:00
parent dce75d6d6c
commit e3faa3b37b

View file

@ -19,6 +19,7 @@ class MetadataContent < MetadataTemplate
# Detectar si el contenido estaba en Markdown y pasarlo a HTML
def legacy_content
return unless document.content
return document.content if /^\s*</ =~ document.content
CommonMarker.render_doc(document.content, %i[FOOTNOTES], %i[table strikethrough autolink]).to_html