diff --git a/README.md b/README.md index 225ca90..c5c29c1 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ This package is ESM only: Node 12+ and [unified 10](https://www.npmjs.com/packag ```typescript import { unified } from 'unified' -import rehyper from 'rehyper' +import rehype from 'rehype' import remarkParse from 'remark-parse' import remarkRehype from 'remark-rehype' import rehypePrism from 'rehype-prism' @@ -46,7 +46,7 @@ unified() .parse(/* markstring string */) // parse code block in html string -rehyper() +rehype() .use(rehypePrism) .use(rehypeStringify) .parse(/* html string */) diff --git a/package.json b/package.json index e97f42a..d70b506 100644 --- a/package.json +++ b/package.json @@ -34,6 +34,7 @@ "url": "git+https://github.com/Val-istar-Guo/rehype-prism.git" }, "keywords": [ + "rehype", "rehyper", "prism", "highlight", @@ -44,7 +45,8 @@ "remark", "highlighting", "syntax", - "syntax-highlighting plugin" + "syntax-highlighting", + "plugin" ], "author": "Val-istar-Guo ", "license": "MIT",