From da456228f2c5016ed814d2ac1adb2497e6e33a5c Mon Sep 17 00:00:00 2001 From: sup39 Date: Sun, 10 Jan 2021 17:00:34 +0900 Subject: [PATCH] fix README.md --- README.md | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) 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 | -`); -```