remark-steps
v1.3.2
Published
Remark AST plugin is used to customize the steps style in markdown.
Downloads
12
Maintainers
Readme
Remark Steps
Remark plugin to rebuild step style into DOM
Install
npm install -D remark-steps
Import
Import plugin
docusaurus.config.js
import { steps } from 'remark-steps';
...
remarkPlugins: [steps],
Import style
support css and scss, you can choose one of them
// css
@import "remark-steps";
// scss
@import "remark-steps";
Custom define Step's style
support css and scss, you can choose one of them
:root {
--step-line-color: #46b583;
--step-number-color: #46b583;
--step-number-background: #eef0f4;
}
Usage
markdown file
:::steps
### Install
Install the package from npm.
```bash
npm install -D remark-steps
```
### Import plugin
Import the plugin in your `docusaurus.config.js`.
```js
import { steps } from 'remark-steps';
...
remarkPlugins: [steps],
```
### Import style
Import the style in your `custom.scss` or `custom.css`.
```css
@use "remark-steps";
```
```css
@import "remark-steps";
```
### Custom define Step's style
```css
:root {
--step-line-color: #46b583;
--step-number-color: #46b583;
--step-number-background: #eef0f4;
}
```
:::
Preview