mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
Revert "markdown: Remove paragraphs that only contain a tweet link."
This reverts commit d3770153a6.
We do not show a link to the tweet in our preview, so we should revert
to our previous behavior for now.
This commit is contained in:
committed by
Tim Abbott
parent
50289d809c
commit
fb2946aaf6
@@ -1070,8 +1070,6 @@ class InlineInterestingLinkProcessor(markdown.treeprocessors.Treeprocessor):
|
||||
|
||||
div.set("class", "inline-preview-twitter")
|
||||
div.insert(0, twitter_data)
|
||||
if info['remove'] is not None:
|
||||
info['parent'].remove(info['remove'])
|
||||
|
||||
def find_proper_insertion_index(self, grandparent: Element, parent: Element,
|
||||
parent_index_in_grandparent: int) -> int:
|
||||
|
||||
Reference in New Issue
Block a user