1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-15 23:00:36 +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;