# Topic List Previews (legacy)

**URL:** <https://meta.discourse.org/t/topic-list-previews-legacy/101646>\
**Category:** Plugin\
**Tags:** deprecated\
**Created:** [November 9, 2018, 3:56am UTC](https://meta.discourse.org/t/topic-list-previews-legacy/101646 "2018-11-09T03:56:38Z")\
**Posts on this page:** 1\
**Showing post:** 1033

<div class="post-metadata">

**Author:** ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)\
**Post date:** [May 22, 2020, 2:07pm UTC](https://meta.discourse.org/t/topic-list-previews-legacy/101646/1033 "2020-05-22T14:07:03Z")

</div>

Rebaking is done. What a messy result! 😔

Well, now I know why this option was disabled.

We are using Wordpress and the first post contains full html. Discourse has no issue to replace image HTML with markdown, but markdown image can’t be rendered if surrounded with HTML (or specifically you need a least en empty line above).

I have 2 problems:

1. Some images were not downloaded, likely because of `srcset` attribute (but it’s okay). The images are well displayed in the first post, but there is no thumbnail generated. It was working before.

2. As said above, some markdown image are not rendered.

```Ruby
Post
  .where(post_number: 1)
  .where("raw LIKE '%upload://%'").each do |post|  
     post.raw.gsub!(/(!\[.*upload:\/\/.*\))/, "\n\n\\1") 
     post.save!(validate: false); 
     post.rebake! 
end

```

Any help is appreciated, thanks!

---

_[View the full topic](https://meta.discourse.org/t/topic-list-previews-legacy/101646)._
