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:
parent
6da6f35ddd
commit
5a9b3b6c7c
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -12,7 +12,8 @@
|
||||
},
|
||||
"lint-staged": {
|
||||
"*.{js,jsx}": [
|
||||
"npm run linter"
|
||||
"npm run linter",
|
||||
"git add"
|
||||
]
|
||||
},
|
||||
"repository": {
|
||||
|
Loading…
Reference in New Issue
Block a user