Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/AWaterColorPen/unity-rich-text-converter
typescript library to converter message between unity rich text and html standard rich text.
https://github.com/AWaterColorPen/unity-rich-text-converter
html html-standard-rich-text rich-text typescript unity unity-rich-text
Last synced: about 2 months ago
JSON representation
typescript library to converter message between unity rich text and html standard rich text.
- Host: GitHub
- URL: https://github.com/AWaterColorPen/unity-rich-text-converter
- Owner: AWaterColorPen
- License: mit
- Created: 2019-05-25T05:37:58.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-07T07:29:32.000Z (almost 2 years ago)
- Last Synced: 2024-09-18T14:11:34.922Z (3 months ago)
- Topics: html, html-standard-rich-text, rich-text, typescript, unity, unity-rich-text
- Language: TypeScript
- Homepage:
- Size: 143 KB
- Stars: 11
- Watchers: 2
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome - AWaterColorPen/unity-rich-text-converter - typescript library to converter message between unity rich text and html standard rich text. (TypeScript)
README
# unity-richtext-converter
[![Build Status](https://travis-ci.org/AWaterColorPen/unity-rich-text-converter.svg?branch=master)](https://travis-ci.org/AWaterColorPen/unity-rich-text-converter)
> typescript library to converter message between unity rich text and html standard rich text.
## Usage
- install it
```shell
npm install unity-richtext-converter
```- usage
```typescript
import Converter from "unity-richtext-converter";const converter = new Converter();
const unitytext = converter.html2unity(text);
const htmltext = converter.unity2html(text);
```## Development
- install env, please make sure [node.js](https://nodejs.org) installed
```shell
npm install
```- build
```shell
npm run build
```- test
```shell
npm run test
```## Unity Rich Text
(adapted from the [official documentation](https://docs.unity3d.com/Manual/StyledText.html))
## License
MIT © [awatercolorpen](https://github.com/awatercolorpen)