Links on separate lines end up on the same line

A bug impacting the saved searches plugin:

I think this is caused by links in secured categories which won’t be oneboxed. The preview pane shows the desired output, but they end up on one line in the final cooked post.

5개의 좋아요

That is very odd as there are clearly linebreaks between the links.

I think I saw something similar here: https://meta.discourse.org/t/inline-onebox-not-working-with-public-topics/83641/3 I suspect this is due to my markdown.it upgrade. Going to write a test case for this.

4개의 좋아요

I fixed our code that was supposed to strip empty <p> elements but was a bit too greedy

https://github.com/discourse/discourse/commit/3c8b43bb011da73507c022b0dceaa807fd718c3f

6개의 좋아요