Skip to content

Commit

Permalink
Updating examples to reflect showdown 1.0+
Browse files Browse the repository at this point in the history
  • Loading branch information
markgeraty committed Jun 1, 2015
1 parent ce16721 commit 3a4cada
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
```

```javascript
var converter = new Showdown.converter({ extensions: ['xssfilter'] })
var converter = new showdown.Converter({ extensions: ['xssfilter'] })
var text = "<script>alert('xss!')</script>";
console.log(converter.makeHtml(text));
```
Expand All @@ -21,9 +21,9 @@ Note: be sure to include the dependency on [leizongmin/js-xss](https://github.co
## Server-side (node)

```javascript
var Showdown = require('showdown');
var showdown = require('showdown');
var xssFilter = require('showdown-xss-filter');
var converter = new Showdown.converter({extensions: [xssFilter]});
var converter = new showdown.Converter({extensions: [xssFilter]});

var text = "<script>alert('xss!')</script>";
console.log(converter.makeHtml(text));
Expand Down

0 comments on commit 3a4cada

Please sign in to comment.