diff --git a/README.md b/README.md index b57ca809..4906e0b4 100644 --- a/README.md +++ b/README.md @@ -106,6 +106,7 @@ Check our [wiki pages][wiki] for examples and a more in-depth documentation. ### Node +**Markdown to HTML** ```js var showdown = require('showdown'), converter = new showdown.Converter(), @@ -113,12 +114,21 @@ var showdown = require('showdown'), html = converter.makeHtml(text); ``` +**HTML to Markdown** +```js +var showdown = require('showdown'), + converter = new showdown.Converter(), + html = 'Please Support us!', + md = converter.makeMarkdown(text); +``` + + ### Browser ```js var converter = new showdown.Converter(), - text = '# hello, markdown!', - html = converter.makeHtml(text); + html = converter.makeHtml('# hello, markdown!'), + md = converter.makeMd('Please Support us!'); ``` ### Output @@ -129,6 +139,10 @@ Both examples should output...