File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ class CheckboxWidget extends WidgetType {
172172 toDOM ( ) {
173173 const wrap = document . createElement ( 'span' )
174174 wrap . className = 'cm-checkbox-widget' + ( this . checked ? ' cm-checkbox-checked' : '' )
175-
175+
176176 if ( this . checked ) {
177177 wrap . innerHTML = `<svg viewBox="0 0 24 24" width="14" height="14" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>`
178178 } else {
@@ -186,7 +186,7 @@ class CheckboxWidget extends WidgetType {
186186 const to = this . pos + ( this . checked ? 8 : 6 ) // length of "/checked" or "/check"
187187 const insert = this . checked ? '/check' : '/checked'
188188 this . view . dispatch ( {
189- changes : { from, to, insert }
189+ changes : { from, to, insert } ,
190190 } )
191191 }
192192
@@ -492,14 +492,14 @@ const hideMarkdownPlugin = ViewPlugin.fromClass(
492492 }
493493
494494 if ( isChecked ) {
495- const line = view . state . doc . lineAt ( start )
496- if ( line . to > end ) {
497- decos . push ( {
498- from : end ,
499- to : line . to ,
500- deco : Decoration . mark ( { class : 'cm-checked-line-text' } )
501- } )
502- }
495+ const line = view . state . doc . lineAt ( start )
496+ if ( line . to > end ) {
497+ decos . push ( {
498+ from : end ,
499+ to : line . to ,
500+ deco : Decoration . mark ( { class : 'cm-checked-line-text' } ) ,
501+ } )
502+ }
503503 }
504504 }
505505 } // end of visibleRanges iteration
You can’t perform that action at this time.
0 commit comments