Mobiledoc issue for blockquote html conversion

Hi All

I’m having trouble with html to mobiledoc conversions. If I use the API or upload via Labs, I get the same result.

I’m posting a lot of quotes as follows:

<blockquote>There are no traffic jams along the 'extra mile.'<br><cite>Roger Staubach</cite></blockquote>

The converted mobiledoc looks like this:
{“version”:“0.3.1”,“atoms”:[[“soft-return”,“”,{}]],“cards”:,“markups”:,“sections”:[[1,“blockquote”,[[0,,0,“There are no traffic jams along the ‘extra mile.’”],[1,,0,0],[0,,0,“Roger Staubach”]]]]

What I end up with on the post is this:
Roger%20Staubach%20Quote%20(1)

Through the conversion, I’m losing the cite tag?

When I inspect on the frontend it looks like this:

<blockquote>"There are no traffic jams along the 'extra mile.'"
<br>
"Roger Staubach"
</blockquote>

When I change the quote in the post admin, then it returns the desired result, ie the first html example I shared above.

What am I doing wrong here?

Thank you in advance.

Matt

@Mattches <cite> is not supported in the rich-text editor which is why it’s being pulled into a separate section. A workarond could be putting the content into an HTML card instead…

<p>some content</p>
<!--kg-card-start: html-->
<blockquote>There are no traffic jams along the 'extra mile.'<br><cite>Roger Staubach</cite></blockquote>
<!--kg-card-end: html-->
<p>some more content</p>
1 Like

Hey @Kevin

Thanks for the prompt reply.

If I was putting this through a Zap would I just include those card tags before and after the html? That didn’t seem to do the trick.

Matt

Yes, that should be enough. Which version of Ghost are you running?

I’m running 2.30.2

Ohh, this is my bad, sorry, I messed up the comment naming. It should be:

<!--kg-card-begin: html-->
...your html...
<!--kg-card-end: html-->

I wrote start rather than begin in my previous message.

Perfect @Kevin! That worked. Thanks mate.