mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-15 02:01:42 +00:00
en los artículos nuevos no hay contenido
closes #341 closes #340 closes #339 closes #338
This commit is contained in:
parent
dce75d6d6c
commit
e3faa3b37b
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue