You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I may work on a patch when I have the time, but I'll leave this here for discussion :)
I'm converting a large site with user-edited HTML content through a WYSIWYG editor, so I'm finding many cases where stuff like this <em>word</em> is actually <em>wo</em><em>rd</em>, which this gems converts into _wo__rd_. I think it'd be good to add an option to sanitize HTML by removing empty tags and tidying a bit before, but I'm not sure if it'd be a task for reverse markdown. Maybe passing something who can do the cleanup, like Loofah?
The text was updated successfully, but these errors were encountered:
fauno
changed the title
Empty tags produce invalid Markdown
Untidy tags produce invalid Markdown
Jul 16, 2021
I may work on a patch when I have the time, but I'll leave this here for discussion :)
I'm converting a large site with user-edited HTML content through a WYSIWYG editor, so I'm finding many cases where stuff like this
<em>word</em>
is actually<em>wo</em><em>rd</em>
, which this gems converts into_wo__rd_
. I think it'd be good to add an option to sanitize HTML by removing empty tags and tidying a bit before, but I'm not sure if it'd be a task for reverse markdown. Maybe passing something who can do the cleanup, like Loofah?The text was updated successfully, but these errors were encountered: