diff --git a/app/models/metadata_content.rb b/app/models/metadata_content.rb index 8cdc980..dc369ac 100644 --- a/app/models/metadata_content.rb +++ b/app/models/metadata_content.rb @@ -8,7 +8,7 @@ class MetadataContent < MetadataTemplate end def value - self[:value] || document.content || default_value + self[:value] || legacy_content || default_value end def front_matter? @@ -17,6 +17,13 @@ class MetadataContent < MetadataTemplate private + # Detectar si el contenido estaba en Markdown y pasarlo a HTML + def legacy_content + return document.content if /^\s*