@@ -19,7 +19,7 @@ export class MarkdownShortcuts {
1919 {
2020 name : 'blockquote' ,
2121 pattern : / ^ ( > ) \s / g,
22- action : ( text , selection ) => {
22+ action : ( _text , selection ) => {
2323 // Need to defer this action https://github.com/quilljs/quill/issues/1134
2424 setTimeout ( ( ) => {
2525 this . quill . formatLine ( selection . index , 1 , 'blockquote' , true ) ;
@@ -30,7 +30,7 @@ export class MarkdownShortcuts {
3030 {
3131 name : 'bolditalic' ,
3232 pattern : / (?: \* | _ ) { 3 } ( .+ ?) (?: \* | _ ) { 3 } / g,
33- action : ( text , selection , pattern , lineStart ) => {
33+ action : ( text , _selection , pattern , lineStart ) => {
3434 let match = pattern . exec ( text ) ;
3535
3636 const annotatedText = match [ 0 ] ;
@@ -51,7 +51,7 @@ export class MarkdownShortcuts {
5151 {
5252 name : 'bold' ,
5353 pattern : / (?: \* | _ ) { 2 } ( .+ ?) (?: \* | _ ) { 2 } / g,
54- action : ( text , selection , pattern , lineStart ) => {
54+ action : ( text , _selection , pattern , lineStart ) => {
5555 let match = pattern . exec ( text ) ;
5656
5757 const annotatedText = match [ 0 ] ;
@@ -72,7 +72,7 @@ export class MarkdownShortcuts {
7272 {
7373 name : 'italic' ,
7474 pattern : / (?: \* | _ ) { 1 } ( .+ ?) (?: \* | _ ) { 1 } / g,
75- action : ( text , selection , pattern , lineStart ) => {
75+ action : ( text , _selection , pattern , lineStart ) => {
7676 let match = pattern . exec ( text ) ;
7777
7878 const annotatedText = match [ 0 ] ;
@@ -93,7 +93,7 @@ export class MarkdownShortcuts {
9393 {
9494 name : 'strikethrough' ,
9595 pattern : / (?: ~ ~ ) ( .+ ?) (?: ~ ~ ) / g,
96- action : ( text , selection , pattern , lineStart ) => {
96+ action : ( text , _selection , pattern , lineStart ) => {
9797 let match = pattern . exec ( text ) ;
9898
9999 const annotatedText = match [ 0 ] ;
@@ -128,7 +128,7 @@ export class MarkdownShortcuts {
128128 {
129129 name : 'code' ,
130130 pattern : / (?: ` ) ( .+ ?) (?: ` ) / g,
131- action : ( text , selection , pattern , lineStart ) => {
131+ action : ( text , _selection , pattern , lineStart ) => {
132132 let match = pattern . exec ( text ) ;
133133
134134 const annotatedText = match [ 0 ] ;
0 commit comments