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:
Rohitt Vashishtha
2020-07-18 02:01:13 +05:30
committed by Tim Abbott
parent 50289d809c
commit fb2946aaf6
2 changed files with 16 additions and 17 deletions

View File

@@ -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: