1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-14 02:06:29 +00:00

Merged branch finder into master

This commit is contained in:
Dick Choi
2016-07-28 14:52:24 +09:00
3 changed files with 4 additions and 4 deletions

View File

@@ -96,9 +96,9 @@ md.block.ruler.at('paragraph', function (state, startLine/*, endLine*/) {
token.map = [ startLine, state.line ]
if (state.parentType === 'list') {
let match = content.match(/\[( |x)\] ?(.+)/i)
let match = content.match(/^\[( |x)\] ?(.+)/i)
if (match) {
content = `<label class='taskListItem' for='checkbox-${startLine + 1}'><input type='checkbox'${match[1] !== ' ' ? ' checked' : ''} id='checkbox-${startLine + 1}'/> ${match[2]}</label>`
content = `<label class='taskListItem' for='checkbox-${startLine + 1}'><input type='checkbox'${match[1] !== ' ' ? ' checked' : ''} id='checkbox-${startLine + 1}'/> ${content.substring(4, content.length)}</label>`
}
}

View File

@@ -26,7 +26,7 @@
margin 0
padding 0
border-style solid
border-color $ui-borderColor
border-color $ui-button--focus-borderColor
border-width 0 0 0 3px
line-height 18px
background-color transparent

View File

@@ -83,7 +83,7 @@
border-radius 3px
vertical-align middle
border-style solid
border-color $ui-borderColor
border-color $ui-button--focus-borderColor
border-width 0 0 0 3px
background-color $ui-backgroundColor