removes a line that broke hard line brakes intentionally to fix Markdown implementation fails to produce hard line breaks properly #440 (#591)
This commit is contained in:
parent
231c0f420f
commit
d3ea7b510e
1 changed files with 0 additions and 3 deletions
|
@ -184,9 +184,6 @@ def sanitize_raw(sanitized:Optional[str], allow_newlines:bool, length_limit:Opti
|
|||
|
||||
@with_gevent_timeout(2)
|
||||
def sanitize(sanitized, alert=False, comment=False, edit=False):
|
||||
# double newlines, eg. hello\nworld becomes hello\n\nworld, which later becomes <p>hello</p><p>world</p>
|
||||
sanitized = linefeeds_regex.sub(r'\1\n\n\2', sanitized)
|
||||
|
||||
if MULTIMEDIA_EMBEDDING_ENABLED:
|
||||
# turn eg. https://wikipedia.org/someimage.jpg into 
|
||||
sanitized = image_regex.sub(r'\1\4', sanitized)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue