There are differences in markup between the preview and topics. Most of them are related to some content being added on the server side (like one boxes), but others are as simple as where it is in the DOM. The composer has a different HTML structure than the posts view, and that’s enough to make a difference in unsupported behaviour like this.
eviltrout
(Robin Ward)
6
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Markdown preview and result differ | 6 | 1179 | June 20, 2023 | |
| "Traditional markdown linebreaks" not reflected in preview | 3 | 1433 | July 3, 2017 | |
| Incoming HTML Email Inconsistent | 4 | 1085 | September 4, 2017 | |
| The "button" HTML5 tag renders in the editor previewer, but not rendered posts | 9 | 241 | March 26, 2025 | |
| Discourse doesn't follow the CommonMark spec for HTML <pre> tags inside code spans | 5 | 2590 | June 26, 2017 |