diff --git a/common/importers/douban.py b/common/importers/douban.py index c6b49bf1..f4f0e418 100644 --- a/common/importers/douban.py +++ b/common/importers/douban.py @@ -251,6 +251,7 @@ class DoubanImporter: if review_class.objects.filter(**params).exists(): return 2 content = re.sub(r'([^<]+)', r'\1', content) + content = re.sub(r'(]+>)', r'\1
', content) content = re.sub(r'
([^<]+)
', r'
\1
', content) content = md(content) content = re.sub(r'(?<=!\[\]\()([^)]+)(?=\))', lambda x: fetch_remote_image(x[1]), content)