@@ -30,8 +30,7 @@ import {
3030const BULLET_INDENT = 2 ;
3131const ORDERED_INDENT = 3 ;
3232const LIST_INDENT_STEP = "1.5rem" ;
33- const LIST_MARKER_WIDTH = "2rem" ;
34- const LIST_WRAP_INDENT_OFFSET = "0.2rem" ;
33+ const LIST_MARKER_WIDTH = "2.2rem" ;
3534const LIST_CHILD_BLOCK_OFFSET = LIST_MARKER_WIDTH ;
3635const LIST_SOURCE_INDENT_CHAR_WIDTH = "0.25rem" ;
3736const BLOCKQUOTE_PREFIX_RE = / ^ (?: [ \t ] { 0 , 3 } > ? ) + / ;
@@ -1396,9 +1395,9 @@ function addMarkerDecorations(
13961395 } ,
13971396 } ) . range ( data . lineStart ) ,
13981397 Decoration . replace ( { } ) . range ( data . markerStart , data . markerEnd + 1 ) ,
1399- taskMarkerDecoration . range ( taskStart , taskEnd ) ,
1398+ taskMarkerDecoration . range ( taskStart , taskEnd + 1 ) ,
14001399 ) ;
1401- atomicRanges . push ( taskMarkerDecoration . range ( taskStart , taskEnd ) ) ;
1400+ atomicRanges . push ( taskMarkerDecoration . range ( taskStart , taskEnd + 1 ) ) ;
14021401
14031402 if ( checked && taskEnd + 1 < line . to ) {
14041403 decorationRanges . push (
@@ -1826,11 +1825,9 @@ const listTheme = EditorView.theme({
18261825 ".cm-md-list" : {
18271826 "--cm-md-list-indent-step" : LIST_INDENT_STEP ,
18281827 "--cm-md-list-marker-width" : LIST_MARKER_WIDTH ,
1829- "--cm-md-list-wrap-indent-offset" : LIST_WRAP_INDENT_OFFSET ,
18301828 paddingLeft :
1831- "calc(var(--indent-level) * var(--cm-md-list-indent-step) + var(--cm-md-list-marker-width) + var(--cm-md-list-wrap-indent-offset)) !important" ,
1832- textIndent :
1833- "calc(-1 * (var(--cm-md-list-marker-width) + var(--cm-md-list-wrap-indent-offset)))" ,
1829+ "calc(var(--indent-level) * var(--cm-md-list-indent-step) + var(--cm-md-list-marker-width)) !important" ,
1830+ textIndent : "calc(var(--cm-md-list-marker-width) * -1)" ,
18341831 } ,
18351832 ".cm-md-list *" : {
18361833 textIndent : "0" ,
@@ -1907,7 +1904,7 @@ const listTheme = EditorView.theme({
19071904 height : "1.15em" ,
19081905 lineHeight : "1" ,
19091906 position : "relative" ,
1910- transform : "translateY(0.20em )" ,
1907+ transform : "translateY(0.24em )" ,
19111908 width : "1.15em" ,
19121909 } ,
19131910 ".cm-md-task-marker-checked .cm-md-task-marker-box" : {
0 commit comments