diff --git a/README.md b/README.md index 8449673..a3c33be 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,19 @@ # markdown-it-raw-table + +## Usage +```js +const md = require('markdown-it')(); +const mrt = require('@sup39/markdown-it-raw-table'); +md.use(mrt); + +md.render(` +| abc | def | +| --- | --- | +| bar | +| bar | baz | boo | +`); +``` + ## Feature `td` count is NOT adjusted to `th` count when using this plugin. @@ -229,17 +244,3 @@ is rendered as ``` - -## Usage -```js -const md = require('markdown-it')(); -const mrt = require('@sup39/markdown-it-raw-table'); -md.use(mrt); - -md.parse(` -| abc | def | -| --- | --- | -| bar | -| bar | baz | boo | -`); -```