An open API service indexing awesome lists of open source software.

https://github.com/robot-inventor/qnote

Parser for Qiita note notation
https://github.com/robot-inventor/qnote

Last synced: about 1 year ago
JSON representation

Parser for Qiita note notation

Awesome Lists containing this project

README

          

# qnote-parser

[Marked](https://github.com/markedjs/marked) extension for parsing [Qiita note notation](https://qiita.com/Qiita/items/c686397e4a0f4f11683d#note---%E8%A3%9C%E8%B6%B3%E8%AA%AC%E6%98%8E).

## Installation

```shell
npm install qnote-parser
```

## Usage

```javascript
import { marked } from "marked";
import { qnote } from "qnote-parser";

marked.use({ extensions: [qnote] });

const markdown = `Hello.

:::note info
This is **note** notation.

Paragraph is supported.
:::

Good-bye!`;

console.log(marked.parse(markdown));
```

result:

```html

Hello.




This is note notation.


Paragraph is supported.




Good-bye!


```