# 채팅에서 줄을 차지하는 링크는 항상 원박스로 변환됩니다 (게시글과 다름)

**URL:** https://meta.discourse.org/t/links-on-a-line-by-themselves-always-onebox-in-chat-unlike-in-posts/291987
**Category:** UX
**Tags:** chat
**Created:** [1월 17, 2024, 7:27오후 UTC](https://meta.discourse.org/t/links-on-a-line-by-themselves-always-onebox-in-chat-unlike-in-posts/291987 "2024-01-17T19:27:22Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![nathank](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nathank/32/290039_2.png) [@nathank](https://meta.discourse.org/u/nathank)
#### Post date: [1월 17, 2024, 7:27오후 UTC](https://meta.discourse.org/t/links-on-a-line-by-themselves-always-onebox-in-chat-unlike-in-posts/291987/1 "2024-01-17T19:27:22Z")

</div>

채팅에서 링크를 게시할 때, 게시글에서의 동작과 일관되지 않다는 점을 방금 알게 되었습니다. 이는 이상적이지 않습니다.

구체적으로, 링크가 Onebox로 변환되는 경향을 끄려면 몇 가지 키보드 조작이 필요합니다.

일반적인 게시글에서는 링크 앞에 단순히 공백을 넣으면 Onebox 생성을 방지할 수 있습니다:

```plaintext
discourse.org

```

> **[Where Tech Companies Build Communities](https://www.discourse.org/)**
>
> The customizable, scalable community platform powering over 22,000 communities. Create knowledge through conversation.

```plaintext
discourse.org

```

[discourse.org](http://discourse.org)

### 채팅에서

링크를 인라인으로 만들거나 마크다운(또는 HTML) 링크로 수동으로 감싸야 합니다

---

<div class="post-metadata">

### Author: ![Firepup650](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/firepup650/32/465200_2.png) [@Firepup650](https://meta.discourse.org/u/Firepup650)
#### Post date: [1월 18, 2024, 12:33오전 UTC](https://meta.discourse.org/t/links-on-a-line-by-themselves-always-onebox-in-chat-unlike-in-posts/291987/2 "2024-01-18T00:33:57Z")

</div>

이와 관련하여, 링크를 HTML 요소인 것처럼 감싸면 게시글과 채팅 모두에서 원박싱(oneboxing)이 방지됩니다. 다만 외부의 `<>`는 채팅에서만 사라집니다:

```plaintext
<discourse.org>

```

\<[discourse.org](http://discourse.org)\>

---

<div class="post-metadata">

### Author: ![renato](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/renato/32/383632_2.png) [@renato](https://meta.discourse.org/u/renato)
#### Post date: [1월 18, 2024, 12:42오전 UTC](https://meta.discourse.org/t/links-on-a-line-by-themselves-always-onebox-in-chat-unlike-in-posts/291987/3 "2024-01-18T00:42:55Z")

</div>

저는 이 트릭을 항상 사용하는데, 프로토콜이 없을 때 동작이 달라지는 걸 전혀 몰랐습니다… 하지만 프로토콜이 있으면 제대로 동작하네요:

```plaintext
<https://www.discourse.org>

```

이것이

[https://www.discourse.org](https://www.discourse.org)

으로 변환됩니다.

---

<div class="post-metadata">

### Author: ![Firepup650](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/firepup650/32/465200_2.png) [@Firepup650](https://meta.discourse.org/u/Firepup650)
#### Post date: [1월 18, 2024, 12:55오전 UTC](https://meta.discourse.org/t/links-on-a-line-by-themselves-always-onebox-in-chat-unlike-in-posts/291987/4 "2024-01-18T00:55:41Z")

</div>

그것이 차이라고 생각하는데, 보통은 실패하는 경우를 기억한 적이 없거든요. (다만, 사용할 때는 항상 전체 링크를 붙여넣습니다)
