docs: fix some casing inconsistencies (#7081)

This commit is contained in:
Joshua Chen 2022-03-31 20:23:44 +08:00 committed by GitHub
parent 24c205a835
commit ff96606865
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
45 changed files with 97 additions and 97 deletions

View file

@ -124,7 +124,7 @@ The writeup below is **not** meant to be a comprehensive guide to creating a plu
:::
For example, let's make a plugin that visits every `h2` heading and adds a `Section X. ` prefix. First, create your plugin source file anywhere—you can even publish it as a separate NPM package and install it like explained above. We would put ours at `src/remark/section-prefix.js`. A remark/rehype plugin is just a function that receives the `options` and returns a `transformer` that operates on the AST.
For example, let's make a plugin that visits every `h2` heading and adds a `Section X. ` prefix. First, create your plugin source file anywhere—you can even publish it as a separate npm package and install it like explained above. We would put ours at `src/remark/section-prefix.js`. A remark/rehype plugin is just a function that receives the `options` and returns a `transformer` that operates on the AST.
```js "src/remark/section-prefix.js"
const visit = require('unist-util-visit');