mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-26 08:56:22 +00:00
sanitizar el markdown al mostrarlo
This commit is contained in:
parent
3300e65022
commit
230ea30484
1 changed files with 3 additions and 3 deletions
|
@ -2,9 +2,9 @@
|
||||||
|
|
||||||
# Contenido con el editor de Markdown
|
# Contenido con el editor de Markdown
|
||||||
class MetadataMarkdownContent < MetadataContent
|
class MetadataMarkdownContent < MetadataContent
|
||||||
# Renderizar a HTML
|
# Renderizar a HTML y sanitizar
|
||||||
def to_s
|
def to_s
|
||||||
CommonMarker.render_doc(value, %i[FOOTNOTES SMART],
|
sanitize CommonMarker.render_doc(value, %i[FOOTNOTES SMART],
|
||||||
%i[table strikethrough autolink]).to_html
|
%i[table strikethrough autolink]).to_html
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue