fix(typography): add styles for task lists with checkboxes and update documentation (#796)

* fix(typography): add styles for task lists with checkboxes and update documentation

* chore: run task css

* feat(docs): add task lists to markdown guides in Persian, Japanese, and Simplified Chinese
This commit is contained in:
Xin
2025-08-26 20:28:29 +01:00
committed by GitHub
parent 22f81e2470
commit f9a94f02a6
6 changed files with 53 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@@ -60,6 +60,10 @@
@apply hx:my-2; @apply hx:my-2;
} }
} }
/* Task lists - hide list markers for lists containing checkboxes */
:where(ul):not(:where([class~=not-prose],[class~=not-prose] *)):has(li input[type="checkbox"]) {
@apply hx:list-none;
}
/* This CSS rule targets the first nested unordered (ul) or ordered (ol) list /* This CSS rule targets the first nested unordered (ul) or ordered (ol) list
inside the list item (li) of any parent ul or ol. inside the list item (li) of any parent ul or ol.
The rule sets the top margin of the selected list to zero. */ The rule sets the top margin of the selected list to zero. */

View File

@@ -155,6 +155,18 @@ Hugo از [Markdown](https://en.wikipedia.org/wiki/Markdown) برای قالب
- پنیر - پنیر
``` ```
#### لیست وظایف
- [x] نوشتن مستندات
- [ ] بازبینی کد
- [ ] استقرار تغییرات
```markdown {filename=Markdown}
- [x] نوشتن مستندات
- [ ] بازبینی کد
- [ ] استقرار تغییرات
```
### تصاویر ### تصاویر
![منظره](https://picsum.photos/800/600) ![منظره](https://picsum.photos/800/600)

View File

@@ -155,6 +155,18 @@ Hugo はテキストの書式設定やリスト作成などに [Markdown](https:
- チーズ - チーズ
``` ```
#### タスクリスト
- [x] ドキュメント作成
- [ ] コードレビュー
- [ ] 変更のデプロイ
```markdown {filename=Markdown}
- [x] ドキュメント作成
- [ ] コードレビュー
- [ ] 変更のデプロイ
```
### 画像 ### 画像
![風景](https://picsum.photos/800/600) ![風景](https://picsum.photos/800/600)

View File

@@ -155,6 +155,18 @@ Tables aren't part of the core Markdown spec, but Hugo supports them out-of-the-
- Cheese - Cheese
``` ```
#### Task list
- [x] Write documentation
- [ ] Review code
- [ ] Deploy changes
```markdown {filename=Markdown}
- [x] Write documentation
- [ ] Review code
- [ ] Deploy changes
```
### Images ### Images
![landscape](https://picsum.photos/800/600) ![landscape](https://picsum.photos/800/600)

View File

@@ -155,6 +155,18 @@ Hugo 支持使用 [Markdown](https://en.wikipedia.org/wiki/Markdown) 语法来
- 奶酪 - 奶酪
``` ```
#### 任务列表
- [x] 编写文档
- [ ] 代码审查
- [ ] 部署更改
```markdown {filename=Markdown}
- [x] 编写文档
- [ ] 代码审查
- [ ] 部署更改
```
### 图片 ### 图片
![风景](https://picsum.photos/800/600) ![风景](https://picsum.photos/800/600)