No description
Find a file
2020-03-01 16:26:43 +09:00
src implement syntax: hashtag 2020-03-01 16:26:43 +09:00
.gitignore update ignore 2020-03-01 01:29:48 +09:00
LICENSE update iroiro 2020-02-16 23:27:25 +09:00
package.json v0.2.0 2020-02-24 23:20:45 +09:00
README.md fix typo 2020-03-01 01:15:53 +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 * as mfm from 'mfm-parser-pegjs';

// parse a MFM text
const result = mfm.parse('good morning ***everyone!***');

// parse a MFM plain text
const plainResult = mfm.parsePlain('I like the hot soup :soup:');

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

This software is released under the MIT License unless otherwise noted.

This software includes code of therd party softwares below: