1.3.2 • Published 4 months ago

remark-steps v1.3.2

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

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

preview

1.3.2

4 months ago

1.3.1

4 months ago

1.3.0

4 months ago

1.2.1

4 months ago

1.2.0

4 months ago

1.1.1

4 months ago

1.1.0

4 months ago