¿No funcionan los oneboxes dentro de los bloques de cita?

Hola a todos,

Hace algún tiempo escribí algunos Cómo hacerlo para algunos de nuestros usuarios. En particular, uno de ellos explicaba cómo incrustar un modelo 3D de Sketchfab en una publicación.

Les proporcioné un ejemplo de tema con el texto citado en bloque para que pareciera más un “tema”; esto solo mostraba la URL, la cual escapé con una barra invertida. Luego, debajo, hice lo mismo pero con el enlace de Sketchfab sin escapar, de modo que el modelo aparecía dentro del área de cita en bloque.

Hoy encontré este tema y noté que escapar las barras diagonales en la URL o reemplazarlas con entidades HTML ya no hace que el enlace aparezca simplemente como texto (es decir, sin convertirse automáticamente en un hipervínculo), sino que también hace que el contenido 3D incrustado de Sketchfab deje de aparecer.

La única forma que he encontrado para sortear esto es no citar en bloque esa parte del contenido, lo cual se ve un poco mal.

Como no suelo leer mis propios Cómo hacerlo con frecuencia, no había notado este cambio anteriormente; es posible que haya sido así durante algún tiempo.

¿Alguna idea? ¿Hay alguna razón por la cual el contenido de Onebox no pueda aparecer en una cita en bloque?

Lo siguiente iba a ser un ejemplo, pero aquí se comporta de manera diferente a nuestra versión alojada:

Aquí hay algo bonito para ver;

Desert Bridge - 3D model by McFuzz [d75d53b] - Sketchfab

En el ejemplo anterior, parece que alguna parte del proceso de Onebox ha funcionado, ya que muestra el título del modelo, pero en nuestra versión alojada solo aparece el enlace.

Aquí hay algo bonito para ver;

…y en el ejemplo anterior, no puedo tener el modelo dentro de la cita en bloque.

1 me gusta

Hey Rob, I work for Sketchfab (lowercase f ;-). This sounds more like a Discourse issue, but if there’s anything we can do to help, let me know!

3 Me gusta

Hi Bart,

Thank you, appreciated. It did used to work as I had wanted so I can only assume it has been via a change in Discourse at some point, there is probably a good reason behind it, but just in case there isn’t I thought I’d ask in the hope that I can revert to what I had :slight_smile:

My apologies regarding the “F”, I will correct on our site also!

2 Me gusta

Any ideas here @jomaxro?

1 me gusta

We have the same issue with any onebox in a quote.

Adding an internal Discourse link gives us the “inline” onebox:
Oneboxes don't work inside quote blocks?
Twitter (or any other link) also doesn’t expand, we get “inline” too.
x.com

It’s possible this broke as soon back when we added inline oneboxing, or a more recent regression, can’t say. Personally I’d call this a bug.

1 me gusta

Hmm so all oneboxing is broken??

No, I don’t think so. I am unclear what you are saying Josh?

2 Me gusta

The issue arises when a link is inside a quote.
When the link is on its own, it gets oneboxed. When it’s inside a quote, it gets “inlined”.

https://twitter.com/triketora/status/986356346672082944

vs

> https://twitter.com/triketora/status/986356346672082944

vs

x.com

3 Me gusta

Right, oneboxing within a blockquote was never supported and isn’t supposed to work.

Left out “in a quote”, fixed that. Thanks @zogstrip for clarifying.

3 Me gusta
If you absolutely positively need to, this workaround can work, no guarantees it will work forever though.
<blockquote>
If you absolutely positively need to, this workaround can work, no guarantees it will work forever though. 

https://twitter.com/triketora/status/986356346672082944

</blockquote>
3 Me gusta

Thanks everyone for looking at this and discussing it, truly appreciated.

It’s a shame it isn’t an intentional feature, as it has been very useful, not something worthy of consideration as a feature rather than a bug @codinghorror?

Thanks for the headsup about using the HTML markup @sam, I will give that a go for now and appreciate the warning that it may stop in the future.

Thanks again everyone, appreciate the support :slight_smile:

If the site had already been oneboxed in a topic it seems noisy to have a huge onebox every time the link is mentioned again. Having it show as a link rather than a onebox in a quote seems preferable.

2 Me gusta

That is a very good point, I was obviously only thinking of the specific usage/need I had, which was to be able to display a before/after view of a users post.

I suspect it would be of little use to anyone else, so perhaps requesting its behaviour could be configurable, at a post level, wouldnt really be worth it.

I guess a better approach for myself would be to create a couple of screenshots instead and edit those where necessary.

3 Me gusta