# 如何防止连字符变成项目符号列表？

**URL:** <https://meta.discourse.org/t/how-to-prevent-hyphen-becoming-a-bullet-list/122222>\
**Category:** Support\
**Created:** [2019年七月6日 09:25 UTC](https://meta.discourse.org/t/how-to-prevent-hyphen-becoming-a-bullet-list/122222 "2019-07-06T09:25:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Phuong\_SuSu](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/phuong_susu/32/148042_2.png) [@Phuong\_SuSu](https://meta.discourse.org/u/Phuong_SuSu)\
**Post date:** [2019年七月6日 09:25 UTC](https://meta.discourse.org/t/how-to-prevent-hyphen-becoming-a-bullet-list/122222/1 "2019-07-06T09:25:40Z")

</div>

你好，

我的用户经常从行首的字符开始使用连字符。

例如，他们写道：

> ```
> 他说：
> - 嗨，我来自英格兰。
> 她说：
> - 我来自日本。
> 
> ```

它会自动变成这样的项目符号列表：

> 他说：
> 
> - 嗨，我来自英格兰。  
> 她说
> - 我来自日本。

如何防止 Discourse 的这种自动行为？

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2019年七月6日 19:48 UTC](https://meta.discourse.org/t/how-to-prevent-hyphen-becoming-a-bullet-list/122222/6 "2019-07-06T19:48:21Z")

</div>

在破折号前使用反斜杠。参见 [Markdown Reference](https://commonmark.org/help)

- 列表

- 不是列表

```
- 列表

\- 不是列表

```

---

<div class="post-metadata">

**Author:** ![tomtjes](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tomtjes/32/131271_2.png) [@tomtjes](https://meta.discourse.org/u/tomtjes)\
**Post date:** [2019年七月6日 22:05 UTC](https://meta.discourse.org/t/how-to-prevent-hyphen-becoming-a-bullet-list/122222/7 "2019-07-06T22:05:52Z")

</div>

另见

> [@Dialogue text formatting ("-" instead of "•")](https://meta.discourse.org/t/dialogue-text-formatting-instead-of/119658/7?u=tomtjes):
>
> Turns out, your best bet is probably to encourage your community to use a new standard. You could help them by creating a topic template in the category setting. Aside from the backslash a couple other options: Code blocks Use three backticks ``` in a single line before and after the dialogue. - Hello, how are you? - I’m pretty good, thanks. Use two dashes -- Hello, how are you? – Hello, how are you? -- I’m pretty good, thanks. – I’m pretty good, thanks.

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [2022年十二月28日 00:56 UTC](https://meta.discourse.org/t/how-to-prevent-hyphen-becoming-a-bullet-list/122222/8 "2022-12-28T00:56:27Z")

</div>



---

<div class="post-metadata">

**Author:** ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)\
**Post date:** [2022年十二月28日 18:56 UTC](https://meta.discourse.org/t/how-to-prevent-hyphen-becoming-a-bullet-list/122222/9 "2022-12-28T18:56:15Z")

</div>


