Skip to content

Commit

Permalink
bug fixes:
Browse files Browse the repository at this point in the history
+ fix bug with forEach extensions within client-side handling (browser)
+ update README to specify extension as array for client-side usage (same as server)
  • Loading branch information
pdeschen committed Oct 30, 2012
1 parent aa76dee commit caa98a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,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
Expand Down
2 changes: 1 addition & 1 deletion src/showdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ if (typeof module !== 'undefind' && typeof exports !== 'undefined' && typeof req
if (converter_options && converter_options.extensions) {

// Iterate over each plugin
converter_options.extensions.forEach(function(plugin){
forEach(converter_options.extensions, function(plugin){

// Assume it's a bundled plugin if a string is given
if (typeof plugin === 'string') {
Expand Down

0 comments on commit caa98a8

Please sign in to comment.