# remark-select

> A remark plugin to parse select box syntax.

Latest version **1.0.0** (published 2019-01-21) · GPL-3.0-or-later license · 0 weekly downloads

## Install

```sh
npm install remark-select
pnpm add remark-select
yarn add remark-select
bun add remark-select
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2019-01-21 |
| First published | 2018-04-15 |
| Weekly downloads | 0 |
| License | GPL-3.0-or-later |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 25.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | ache |
| Maintainers | ache |
| Keywords | select, box, remark |

## Links

- npm: https://www.npmjs.com/package/remark-select
- Repository: https://github.com/arobase-che/remark-select
- Homepage: https://github.com/arobase-che/remark-select#readme
- Issues: https://github.com/arobase-che/remark-select/issues
- npm.io page: https://npm.io/package/remark-select

## Dependencies (1)

- [md-attr-parser](https://npm.io/package/md-attr-parser.md) ^1.2.1

## Alternatives

- [react-native-root-siblings](https://npm.io/package/react-native-root-siblings.md) — 102.9K weekly downloads
- [post-robot](https://npm.io/package/post-robot.md) — 93.7K weekly downloads
- [@praxisui/dialog](https://npm.io/package/@praxisui/dialog.md) — 2.0K weekly downloads
- [easy-toggle-state](https://npm.io/package/easy-toggle-state.md) — 350 weekly downloads
- [ngx-lightbox-evp](https://npm.io/package/ngx-lightbox-evp.md) — 19 weekly downloads

## Recent versions

- 1.0.0 (latest) — 2019-01-21
- 0.9.3 — 2018-05-27
- 0.9.2 — 2018-04-30
- 0.9.1 — 2018-04-29
- 0.9.0 — 2018-04-23
- 0.1.0 — 2018-04-15

## README

# remark-select

A [remark](https://github.com/remarkjs/remark/) plugin that parse Mardown syntax to add support for select element.


## Syntax

You can add a select element this way :

```markdown
Who is the stronger ? : [ Samus | Peach | Zelda |v]
```

Wich leads to :

![Screenshot](https://raw.githubusercontent.com/arobase-che/remark-select/master/images/example_1.png)


## Installation

Easy as npm i

```shell
$ npm install remark-line-input
```

You install also that plugins : "unified remark-parse rehype-stringify remark-rehype"
```shell
$ npm install unified remark-parse rehype-stringify remark-rehype
```

## Usage

An example of code :

```js
const unified = require('unified')
const remarkParse = require('remark-parse')
const stringify = require('rehype-stringify')
const remark2rehype = require('remark-rehype')

const select = require('remark-select')

const testFile = `Choose a player : [ Luigi | Mario | Peach | Falco | Zelda |v]{.mario .link .starFox}

Choose an action : [ Start | Restart | Quit |v]`

unified()
  .use(remarkParse)
  .use(select)
  .use(remark2rehype) 
  .use(stringify)
  .process( testFile, (err, file) => {
    console.log(String(file));
  } );
```

## Configuration

This plugin support custom HTML attributes :

```markdown
[ Mario | Peach | Luigi |v]{.nintendo #select-character}
```

## Licence

MIT

---
_Source: https://npm.io/package/remark-select · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
