# Importing posts with Markdown

**URL:** <https://meta.discourse.org/t/importing-posts-with-markdown/282635>\
**Category:** Migration\
**Created:** [October 18, 2023, 12:09pm UTC](https://meta.discourse.org/t/importing-posts-with-markdown/282635 "2023-10-18T12:09:55Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![n1bff](https://avatars.discourse-cdn.com/v4/letter/n/e95f7d/32.png) [@n1bff](https://meta.discourse.org/u/n1bff)\
**Post date:** [October 19, 2023, 2:32pm UTC](https://meta.discourse.org/t/importing-posts-with-markdown/282635/12 "2023-10-19T14:32:39Z")

</div>

```plaintext
/var/www/discourse$ bundle exec rails c
Loading production environment (Rails 7.0.7)
irb(main):001:0> Post.update_all(cook_method: Post.cook_methods[:regular])
=> 13809
irb(main):002:0>

```

Done! Sadly no change.

* * *

But I solved it. And I am sorry for not mentioning what plugins I had installed as they can interfere…

I have the [Topic Ratings Plugin](https://meta.discourse.org/t/topic-ratings-plugin/39578/1333579) installed and enabled for the category into which my imports go.

On a whim I disabled the plugin and tried again to edit a “broken” post. Now upon saving, the Markdown formatting was used for fancy rendering. I re-enabled the plugin and tried again with success. I imported new posts and it also renders the posts correctly now (using `cook_method: Post.cook_methods[:regular]`).

I have no idea what is/was going on there but it seems to have been **fixed by toggling the Topic Ratings Plugin [off and on](https://www.youtube.com/watch?v=t2F1rFmyQmY) again**.

Thank you all for the great suggestions and problem hunting!

---

_[View the full topic](https://meta.discourse.org/t/importing-posts-with-markdown/282635)._
