1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-11-27 08:21:03 +02:00

Desktop, Mobile: Resolves #1832: Only support checkboxes that start with a dash

This commit is contained in:
Laurent Cozic 2019-09-07 11:18:07 +01:00
parent 6da6f35ddd
commit 5a9b3b6c7c
4 changed files with 11 additions and 5 deletions

View File

@ -83,7 +83,8 @@ function installRule(markdownIt, mdOptions, ruleOptions, context) {
continue;
}
if (currentListItem && !processedFirstInline && token.type === 'inline') {
// Note that we only support list items that start with "-" (not with "*")
if (currentListItem && currentListItem.markup === '-' && !processedFirstInline && token.type === 'inline') {
processedFirstInline = true;
const firstChild = token.children && token.children.length ? token.children[0] : null;
if (!firstChild) continue;

View File

@ -237,7 +237,11 @@ module.exports = function(style, options) {
align-items: center;
}
.checkbox-label-checked {
.md-checkbox input[type=checkbox]:checked {
opacity: 0.7;
}
.md-checkbox .checkbox-label-checked {
opacity: 0.5;
}

View File

@ -12,7 +12,8 @@
},
"lint-staged": {
"*.{js,jsx}": [
"npm run linter"
"npm run linter",
"git add"
]
},
"repository": {