引用ブロック内ではOneboxが機能しませんか?

みなさんこんにちは、

以前、当社のユーザー向けにいくつかの「How To」記事を書きました。その中でも特に、投稿内に Sketchfab の 3D モデルを埋め込む方法について説明したものがありました。

その際、テキストをブロック引用として「トピック」らしく見せるために、例となるトピックを作成しました。まず、URL をバックスラッシュでエスケープしてテキストとして表示させ、その直下では同じリンクをエスケープせずに記述し、ブロック引用領域内にモデルが表示されるようにしました。

今日、このトピックを偶然見つけたところ、URL のスラッシュをエスケープしたり HTML エンティティに置き換えたりしても、リンクが自動的にハイパーリンク化されずにテキストとして表示されなくなっていることに気づきました。さらに、埋め込まれるはずの Sketchfab の 3D コンテンツも表示されなくなっています。

現在、私がこの問題を回避できる唯一の方法は、その部分をブロック引用に含めないことですが、見た目がいささか見劣りしてしまいます。

自分で書いた「How To」記事を頻繁に読み返すわけではないため、この変更にはこれまで気づいていませんでした。おそらく、この状態はしばらく続いているのでしょう。

何かご存知の方はいらっしゃいますか?Onebox されたコンテンツがブロック引用内に表示されない理由はあるのでしょうか?

以下は本来の例となる予定でしたが、当社のホスト版とは挙動が異なります。

ここに素敵なものがあります;

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

上記では、Onebox の一部が機能しているように見えます。モデルのタイトルが表示されていますが、当社のホスト版ではリンクのみが表示されています。

ここに素敵なものがあります;

…そして上記のように、ブロック引用内にモデルを表示させることはできません。

「いいね!」 1

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

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

Any ideas here @jomaxro?

「いいね!」 1

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

Hmm so all oneboxing is broken??

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

「いいね!」 2

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

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
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

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

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