# 波斯论坛中的非波斯数字在&lt;li&gt;中

**URL:** <https://meta.discourse.org/t/non-persian-numbers-in-li-of-a-persian-forum/68990>\
**Category:** Support\
**Created:** [2017年八月29日 13:42 UTC](https://meta.discourse.org/t/non-persian-numbers-in-li-of-a-persian-forum/68990 "2017-08-29T13:42:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pad\_Pors](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pad_pors/32/52016_2.png) [@Pad\_Pors](https://meta.discourse.org/u/Pad_Pors)\
**Post date:** [2017年八月29日 13:42 UTC](https://meta.discourse.org/t/non-persian-numbers-in-li-of-a-persian-forum/68990/1 "2017-08-29T13:42:21Z")

</div>

after the new common mark have been installed, the list numbers are becoming English in our forum which is Persian. that is:

1. if you want to start a numbered-list, you should first change the language of your keyboard and type the number and switch back to Persian. this is needed for all the numbered item in a list.

2. after you have created your topic, the numbers in the list are shown in English. there’s no way to select the numbers and change the font, or at least I couldn’t find any `div` regarding the numbers.

can anyone hint me what to do? (the first problem is not that good, and make users to escape from creating numbered list).

 ![Untitled](https://global.discourse-cdn.com/meta/original/3X/c/4/c40c1ce2bd01e853840083c452aaef1484396d40.png)

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2017年八月29日 17:19 UTC](https://meta.discourse.org/t/non-persian-numbers-in-li-of-a-persian-forum/68990/2 "2017-08-29T17:19:23Z")

</div>

Can you apply CSS to give it `list-style-type` of `arabic-indic`

```plaintext
.cooked ul {
   list-style-type: arabic-indic
}

```

?

---

<div class="post-metadata">

**Author:** ![Pad\_Pors](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pad_pors/32/52016_2.png) [@Pad\_Pors](https://meta.discourse.org/u/Pad_Pors)\
**Post date:** [2017年八月30日 03:25 UTC](https://meta.discourse.org/t/non-persian-numbers-in-li-of-a-persian-forum/68990/3 "2017-08-30T03:25:06Z")

</div>

Thanks Sam , with a slight change it worked for the css:  
`.cooked ol { list-style-type: arabic-indic ; }`

for the input part, where users need to switch to Persian/English to add numbers and text; before updating the commonmarks, one should only add the first number, and then add `-` for the rest of the numbers. but now all the numbers should have been written.

I think this is a feature for markdown-it, `Marker character change forces new list start`. Meanwhile is there any shortcuts (or tricks) I may have missed in the way one can use this numbered-lists in markdown-it without explicitly inputting all the numbers?

---

<div class="post-metadata">

**Author:** ![Vahid\_Mohammadi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vahid_mohammadi/32/162781_2.png) [@Vahid\_Mohammadi](https://meta.discourse.org/u/Vahid_Mohammadi)\
**Post date:** [2019年十二月3日 07:21 UTC](https://meta.discourse.org/t/non-persian-numbers-in-li-of-a-persian-forum/68990/4 "2019-12-03T07:21:09Z")

</div>

为什么不用 `persian`？  
`list-style-type: persian`

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2019年十二月3日 07:30 UTC](https://meta.discourse.org/t/non-persian-numbers-in-li-of-a-persian-forum/68990/5 "2019-12-03T07:30:05Z")

</div>

当然，如果这是支持的浏览器选项……那为什么不呢。

---

<div class="post-metadata">

**Author:** ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)\
**Post date:** [2024年六月8日 12:37 UTC](https://meta.discourse.org/t/non-persian-numbers-in-li-of-a-persian-forum/68990/6 "2024-06-08T12:37:05Z")

</div>

此主题已在 2474 天后自动关闭。不再允许回复。
