File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ export const olist: ICommand = {
15
15
execute : ( { state, view } ) => {
16
16
if ( ! state || ! view ) return ;
17
17
const lineInfo = view . state . doc . lineAt ( view . state . selection . main . from ) ;
18
- let mark = '- ' ;
19
- const matchMark = lineInfo . text . match ( / ^ - / ) ;
18
+ let mark = '1. ' ;
19
+ const matchMark = lineInfo . text . match ( / ^ \1 \. / ) ;
20
20
if ( matchMark && matchMark [ 0 ] ) {
21
21
mark = '' ;
22
22
}
Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ export const ulist: ICommand = {
16
16
execute : ( { state, view } ) => {
17
17
if ( ! state || ! view ) return ;
18
18
const lineInfo = view . state . doc . lineAt ( view . state . selection . main . from ) ;
19
- let mark = '1. ' ;
20
- const matchMark = lineInfo . text . match ( / ^ \1 \. / ) ;
19
+ let mark = '- ' ;
20
+ const matchMark = lineInfo . text . match ( / ^ - / ) ;
21
21
if ( matchMark && matchMark [ 0 ] ) {
22
22
mark = '' ;
23
23
}
You can’t perform that action at this time.
0 commit comments