1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-14 10:16:26 +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 ] token.map = [ startLine, state.line ]
if (state.parentType === 'list') { if (state.parentType === 'list') {
let match = content.match(/\[( |x)\] ?(.+)/i) let match = content.match(/^\[( |x)\] ?(.+)/i)
if (match) { 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 margin 0
padding 0 padding 0
border-style solid border-style solid
border-color $ui-borderColor border-color $ui-button--focus-borderColor
border-width 0 0 0 3px border-width 0 0 0 3px
line-height 18px line-height 18px
background-color transparent background-color transparent

View File

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