Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyleu committed Jun 19, 2018
1 parent 2565375 commit faf5686
Showing 1 changed file with 22 additions and 6 deletions.
28 changes: 22 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@ var md = new SimpleMDE(
autoSuggest:
{
mode: 'markdown',
startChars: ['@', '#'],
listCallback: function(stringToTest)
{
return [
triggers: {
'@': function(stringToTest) {
return [
{
text: 'Thomas ',
displayText: 'Thomas'
Expand All @@ -26,7 +25,24 @@ var md = new SimpleMDE(
displayText: 'Peter'
}
];
}
}
},
'#': function(stringToTest) {
return [
{
text: 'Two Sum ',
displayText: 'Two Sum'
},
{
text: '3Sum ',
displayText: '3Sum'
},
{
text: '4Sum ',
displayText: '4Sum'
}
];
}
},
},
});
```

0 comments on commit faf5686

Please sign in to comment.