From faf5686e1f0e992259a551c9cd99422db0db7a40 Mon Sep 17 00:00:00 2001 From: Jeremy Leu Date: Mon, 18 Jun 2018 17:08:16 -0700 Subject: [PATCH] update readme --- README.md | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 58b5cb49..9c4a3063 100644 --- a/README.md +++ b/README.md @@ -9,10 +9,9 @@ var md = new SimpleMDE( autoSuggest: { mode: 'markdown', - startChars: ['@', '#'], - listCallback: function(stringToTest) - { - return [ + triggers: { + '@': function(stringToTest) { + return [ { text: 'Thomas ', displayText: 'Thomas' @@ -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' + } + ]; + } + }, + }, }); ``` \ No newline at end of file