mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
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:
parent
2e102c72b2
commit
c3a88c8fee
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user