Fix extension example in the README

var converter = new Showdown.converter({ extensions: 'twitter' });

Since it loops over the value of options.extensions, it ends up looping over each character in the string twitter ['t', 'w', 'i', ...] and fails to load the extension.
This commit is contained in:
Edward Anderson 2013-07-06 17:01:48 -04:00
parent 2e102c72b2
commit c3a88c8fee

View File

@ -110,7 +110,7 @@ Showdown allows additional functionality to be loaded via extensions.
<script src="src/showdown.js" />
<script src="src/extensions/twitter.js" />
var converter = new Showdown.converter({ extensions: 'twitter' });
var converter = new Showdown.converter({ extensions: ['twitter'] });
```
### Server-side Extension Usage