upd: README

This commit is contained in:
Marie 2023-12-22 01:52:03 +01:00
parent 27dd1b6499
commit 4ead124a2a

View file

@ -1,15 +1,10 @@
# mfm.js # sfm.js
An MFM parser implementation with TypeScript. An SFM parser implementation with fixes based on MFM
[Try it out!](https://runkit.com/npm/mfm-js)
[![Test](https://github.com/misskey-dev/mfm.js/actions/workflows/test.yml/badge.svg)](https://github.com/misskey-dev/mfm.js/actions/workflows/test.yml)
[![codecov](https://codecov.io/gh/misskey-dev/mfm.js/branch/develop/graph/badge.svg?token=irAWFiHK8T)](https://codecov.io/gh/misskey-dev/mfm.js)
[![NPM](https://nodei.co/npm/mfm-js.png?downloads=true&downloadRank=true&stars=true)](https://www.npmjs.com/package/mfm-js)
## Installation ## Installation
``` ```
npm i mfm-js npm config set @sharkey:registry https://git.joinsharkey.org/api/packages/Sharkey/npm/
npm i @sharkey/sfm-js
``` ```
## Usage ## Usage
@ -17,7 +12,7 @@ Please see [docs](./docs/index.md) for the detail.
TypeScript: TypeScript:
```ts ```ts
import * as mfm from 'mfm-js'; import * as mfm from '@sharkey/sfm-js';
const inputText = const inputText =
`<center> `<center>
@ -42,12 +37,12 @@ const text = mfm.toString(mfmTree);
## Develop ## Develop
### 1. Clone ### 1. Clone
``` ```
git clone https://github.com/misskey-dev/mfm.js.git git clone https://git.joinsharkey.org/Sharkey/sfm.js.git
``` ```
### 2. Install packages ### 2. Install packages
``` ```
cd mfm.js cd sfm.js
npm i npm i
``` ```