diff --git a/README.md b/README.md index 38450a6e..46d7b028 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,12 @@ var turndownService = new TurndownService() var markdown = turndownService.turndown('

Hello world!

') ``` +Turndown also accepts DOM nodes as input (either element nodes, document nodes, or document fragment nodes): + +```js +var markdown = turndownService.turndown(document.getElementById('content')) +``` + ## Options Options can be passed in to the constructor on instantiation.