No description
Find a file
2020-02-20 12:31:56 +09:00
src add a rule of begin line 2020-02-17 01:35:02 +09:00
.gitignore 🐱 2020-02-01 16:10:25 +09:00
LICENSE update iroiro 2020-02-16 23:27:25 +09:00
package.json revert way to build peg 2020-02-16 23:57:16 +09:00
README.md fix command in readme 2020-02-20 12:31:56 +09:00
tsconfig.client.json update iroiro 2020-02-16 23:27:25 +09:00
tsconfig.json update iroiro 2020-02-16 23:27:25 +09:00
webpack.config.js update iroiro 2020-02-16 23:27:25 +09:00

mfm-parser-pegjs

Description

A MFM parser made with PEG.js (In developing)

Installation

npm i mfm-parser-pegjs

Usage

import { parse } from 'mfm-parser-pegjs';

// parse a MFM code
const result = parse('this is a ***MFM text***');

Usage (Repository)

1. Clone

git clone https://github.com/marihachi/mfm-parser-pegjs.git

2. Build

For production:

npm run build

For development:

npm run build-dev

Use Interactive interface

npm run parse

License

MIT