You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use blockquote inside the new editor, the HTML output is rendered as follows:
<div class="article-post post page">
<blockquote>This is a test. I am a quote</blockquote>
<h3>I am just a header</h3>
<p>Disregard this text right now</p>
[...]
</div>
When the Markdown card is used, then the same content has a different HTML output:
<div class="article-post post page">
<blockquote>
<p>This is a test. I am a quote</p>
</blockquote>
<h3 id="iamjustaheader">I am just a header</h3>
<p>Disregard this text right now</p>
This messes with the CSS of my theme, so that blockquote looks "broken" when the Markdown card is used.
This is very unfortunate for people who are migrating to Ghost 2.x, since the importer uses the Markdown card to import 1.x blog posts by default.
@jbfriedrich this is expected behaviour. The markdown output has not changed between 1.x and 2.x and can't change for backwards-compatibility as it's how 1.x content is "migrated" to 2.x (in reality there's no real migration happening because 1.x already used the 2.x mobiledoc format).
If you are writing themes then your CSS should handle all valid forms of blockquote markup. The Markdown, Embed, and HTML cards all allow completely freeform HTML so there's no guarantee that a <blockquote> will have a specific format - you may have content which has multiple <p> tags along with a <footer> element for example.
@kevinansfield So, how can we handle the fact we have to add quotes on blockquotes tag only if there aren't p tags inside of it? If there are p tags into the blockquotes tag we have to add the quotes on the p tag to avoid the behavior exposed above and maintain the same behavior between 1.x content and 2.x content. This is not possible in CSS.
Also, semantically, when I want to quote many paragraphs, why does the 2.x editor not use p tags to separate my paragraphs?
Issue Summary
When I use blockquote inside the new editor, the HTML output is rendered as follows:
When the Markdown card is used, then the same content has a different HTML output:
This messes with the CSS of my theme, so that blockquote looks "broken" when the Markdown card is used.
This is very unfortunate for people who are migrating to Ghost 2.x, since the importer uses the Markdown card to import 1.x blog posts by default.
I also posted this issue in the Ghost Forums.
To Reproduce
Technical details:
The text was updated successfully, but these errors were encountered: