Update docs
This commit is contained in:
parent
bddb81b066
commit
c369fcb50b
1 changed files with 9 additions and 8 deletions
17
readme.md
17
readme.md
|
@ -39,12 +39,13 @@ one syntax for arbitrary extensions in markdown.
|
|||
You can use this with some more code to match your specific needs, to allow for
|
||||
anything from callouts, citations, styled blocks, forms, embeds, spoilers, etc.
|
||||
|
||||
unified is an AST (abstract syntax tree) based transform project.
|
||||
**remark** is everything unified that relates to markdown.
|
||||
The layer under remark is called mdast, which is only concerned with syntax
|
||||
trees.
|
||||
Another layer underneath is micromark, which is only concerned with parsing.
|
||||
This package is a small wrapper to integrate all of these.
|
||||
**unified** is a project that transforms content with abstract syntax trees
|
||||
(ASTs).
|
||||
**remark** adds support for markdown to unified.
|
||||
**mdast** is the markdown AST that remark uses.
|
||||
**micromark** is the markdown parser we use.
|
||||
This is a remark plugin that adds support for the directives syntax and AST to
|
||||
remark.
|
||||
|
||||
## When should I use this?
|
||||
|
||||
|
@ -63,7 +64,7 @@ and static site generators.
|
|||
## Install
|
||||
|
||||
This package is [ESM only](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c).
|
||||
In Node.js (12.20+, 14.14+, 16.0+), install with [npm][]:
|
||||
In Node.js (version 12.20+, 14.14+, or 16.0+), install with [npm][]:
|
||||
|
||||
```sh
|
||||
npm install remark-directive
|
||||
|
@ -327,7 +328,7 @@ versions of Node.js.
|
|||
As of now, that is Node.js 12.20+, 14.14+, and 16.0+.
|
||||
Our projects sometimes work with older versions, but this is not guaranteed.
|
||||
|
||||
This plugin works with unified 9+ and remark 14+.
|
||||
This plugin works with unified version 9+ and remark version 14+.
|
||||
|
||||
## Security
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue