Skip to content

Commit

Permalink
Treat as * as another trigger for bullet lists
Browse files Browse the repository at this point in the history
  • Loading branch information
LFDM committed Nov 13, 2017
1 parent d21db45 commit 76b5424
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/keyboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ Keyboard.DEFAULTS = {
key: ' ',
collapsed: true,
format: { list: false },
prefix: /^\s*?(\d+\.|-|\[ ?\]|\[x\])$/,
prefix: /^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,
handler: function(range, context) {
let length = context.prefix.length;
let [line, offset] = this.quill.getLine(range.index);
Expand All @@ -263,7 +263,7 @@ Keyboard.DEFAULTS = {
case '[x]':
value = 'checked';
break;
case '-':
case '-': case '*':
value = 'bullet';
break;
default:
Expand Down

0 comments on commit 76b5424

Please sign in to comment.