File tree 3 files changed +57
-8
lines changed
src/components/ui/markdown
3 files changed +57
-8
lines changed Original file line number Diff line number Diff line change @@ -116,12 +116,12 @@ export const Markdown: FC<MdProps & MarkdownToJSX.Options & PropsWithChildren> =
116
116
gfmTask : {
117
117
react ( node , _ , state ) {
118
118
return (
119
- < label
120
- className = "mr-2 inline-flex items-center "
119
+ < input
120
+ type = "checkbox "
121
121
key = { state ?. key }
122
- >
123
- < input type = "checkbox" checked = { node . completed } readOnly />
124
- </ label >
122
+ checked = { node . completed }
123
+ readOnly
124
+ / >
125
125
)
126
126
} ,
127
127
} ,
Original file line number Diff line number Diff line change 1
- ## Basic
1
+ ## List and GFM Tasks
2
2
3
- ### Table
3
+ 1 . First
4
+ 2 . Second
5
+ 1 . 2.1
6
+ 2 . 2.2
7
+ 1 . 3.1
8
+ 3 . Third
9
+ 4 . Fourth
10
+
11
+ - [ ] Checkbox
12
+ - [x] Checkbox Completed
13
+
14
+ ---
15
+
16
+ - Line
17
+ - Line 1.1
18
+ - Line 2
19
+
20
+ ## Definition lists
21
+
22
+ Term 1
23
+
24
+ : Definition 1
25
+ with lazy continuation.
26
+
27
+ Term 2 with _ inline markup_
28
+
29
+ : Definition 2
30
+
31
+ { some code, part of Definition 2 }
32
+
33
+ Third paragraph of definition 2.
34
+
35
+ _ Compact style:_
36
+
37
+ Term 1
38
+ ~ Definition 1
39
+
40
+ Term 2
41
+ ~ Definition 2a
42
+ ~ Definition 2b
43
+
44
+ ## [ Abbreviations] ( https://github.com/markdown-it/markdown-it-abbr )
45
+
46
+ This is HTML abbreviation example.
47
+
48
+ It converts "HTML", but keep intact partial entries like "xxxHTMLyyy" and so on.
49
+
50
+ \* [ HTML] : Hyper Text Markup Language
51
+
52
+ ## Table
4
53
5
54
| 表达内容 | 示例 |
6
55
| ---------------------------------------------------------------------------------------------------------------------------------------- | ------------- |
Original file line number Diff line number Diff line change 87
87
}
88
88
89
89
input [type = 'checkbox' ] {
90
- @apply checkbox;
90
+ @apply checkbox checkbox-xs my-0 mr-2 align-text-bottom ;
91
91
}
92
92
93
93
input [type = 'checkbox' ]: dis abled,
You can’t perform that action at this time.
0 commit comments