Skip to content

Commit faf5686

Browse files
committed
update readme
1 parent 2565375 commit faf5686

File tree

1 file changed

+22
-6
lines changed

1 file changed

+22
-6
lines changed

README.md

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@ var md = new SimpleMDE(
99
autoSuggest:
1010
{
1111
mode: 'markdown',
12-
startChars: ['@', '#'],
13-
listCallback: function(stringToTest)
14-
{
15-
return [
12+
triggers: {
13+
'@': function(stringToTest) {
14+
return [
1615
{
1716
text: 'Thomas ',
1817
displayText: 'Thomas'
@@ -26,7 +25,24 @@ var md = new SimpleMDE(
2625
displayText: 'Peter'
2726
}
2827
];
29-
}
30-
}
28+
},
29+
'#': function(stringToTest) {
30+
return [
31+
{
32+
text: 'Two Sum ',
33+
displayText: 'Two Sum'
34+
},
35+
{
36+
text: '3Sum ',
37+
displayText: '3Sum'
38+
},
39+
{
40+
text: '4Sum ',
41+
displayText: '4Sum'
42+
}
43+
];
44+
}
45+
},
46+
},
3147
});
3248
```

0 commit comments

Comments
 (0)