diff --git a/README.md b/README.md index 3f631c6e..457b5c02 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ const str = state.serializeDocument(document); ```js const { State, MarkdownParser } = require('markup-it'); -const state = State.create(markdown); +const state = State.create(MarkdownParser); const str = state.serializeDocument(document); ``` @@ -66,4 +66,4 @@ These scripts can be called with `babel-node`, for example: ``` babel-node bin/toJSON.js ./page.md -``` \ No newline at end of file +```