extensions should be a list, not a string.

This confused me a for a bit until I realised what was wrong.
This commit is contained in:
Daniel Quinn 2013-03-28 14:18:16 +01:00
parent 2e102c72b2
commit 9c33c6aa87

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