# Títulos HTML com quebras de linha -\> sem título e inconsistência entre visualização e postagem renderizada

**URL:** <https://meta.discourse.org/t/html-headings-with-line-breaks-no-heading-and-inconsistency-between-preview-and-rendered-post/261043>\
**Category:** Bug\
**Created:** [Abril 8, 2023, 4:05pm UTC](https://meta.discourse.org/t/html-headings-with-line-breaks-no-heading-and-inconsistency-between-preview-and-rendered-post/261043 "2023-04-08T16:05:44Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![nat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nat/32/235063_2.png) [@nat](https://meta.discourse.org/u/nat)\
**Post date:** [Junho 20, 2023, 12:40pm UTC](https://meta.discourse.org/t/html-headings-with-line-breaks-no-heading-and-inconsistency-between-preview-and-rendered-post/261043/11 "2023-06-20T12:40:21Z")

</div>

Olá, corrigimos isso com

> <https://github.com/discourse/discourse/pull/21522>
>
> https://meta.discourse.org/t/markdown-preview-and-result-differ/263878
> 
> The re…sult of this markdown had different results in the composer preview and the post. This is solved by updating Loofah to the latest version and using html5 fragments like our user had reported. While the change was only needed in \[cooked\_post\_processor.rb\](https://github.com/discourse/discourse/pull/21500/files#diff-67de7f44aa04f02ceba9770e5d83b4465add3bd4297be871f94a2233cd4831a7), I've updated the other areas of our codebase to also use the html5 fragment.
> 
> \> \<strike\>
> \> 
> \> Additionally, how come
> \> 
> \> \`\`\`qml
> \> import QtQuick
> \> import QtQuick.Controls 2.15 as QQC2
> \> import QtQuick.Layouts
> \> import QtPositioning
> \> \`\`\`
> \> 
> \> and prepension of \`QQC2\` before \`Action\`, \`Button\`, \`ApplicationWindow\`, and \`Frame\` doesn't work, whereas
> \> 
> \> \`\`\`qml
> \> import QtQuick
> \> import QtQuick.Controls
> \> import QtQuick.Layouts
> \> import QtPositioning
> \> import QtQuick.Controls 2.15 as QQC2
> \> \`\`\`
> \> 
> \> and addition of \`QQC2.Button\` (per https://discuss.kde.org/t/qml-pyqt6-cant-get-native-control-appearance/1240/2?u=rokejulianlockhart) does?
> \> 
> \> \</strike\>
> 
> 
> \<img width="643" alt="Screenshot 2023-05-11 at 3 15 36 PM" src="https://github.com/discourse/discourse/assets/1555215/e7087502-b0a1-4219-be0b-ad3904cc6a6f"\>
> 
> 
> 
> Related: 
> \- ~~https://github.com/discourse/discourse/pull/21500~~ 
> \- https://github.com/discourse/discourse-footnote/pull/62
> \- https://github.com/discourse/discourse-bbcode/pull/50

como visto aqui:

## Teste de título com quebras de linha

Parágrafo normal.

## Título sem quebras de linha

* * *

---

_[View the full topic](https://meta.discourse.org/t/html-headings-with-line-breaks-no-heading-and-inconsistency-between-preview-and-rendered-post/261043)._
