Skip to content

Commit 7c5bc0e

Browse files
authoredOct 30, 2018
Merge pull request #257 from dace/update-documentation-with-options-example
add example in documentation for passing in options
2 parents 7783add + 4925169 commit 7c5bc0e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎README.md

+4
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ var markdown = turndownService.turndown(document.getElementById('content'))
4242

4343
Options can be passed in to the constructor on instantiation.
4444

45+
Example:
46+
47+
`var turndownService = new TurndownService({ option: 'value' });`
48+
4549
| Option | Valid values | Default |
4650
| :-------------------- | :------------ | :------ |
4751
| `headingStyle` | `setext` or `atx` | `setext` |

0 commit comments

Comments
 (0)
Please sign in to comment.