songtm / unity-rich-text-converter

typescript library to converter message between unity rich text and html standard rich text.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

unity-richtext-converter

Build Status

typescript library to converter message between unity rich text and html standard rich text.

Usage

  • install it
npm install unity-richtext-converter
  • usage
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 installed
npm install
  • build
npm run build
  • test
npm run test

Unity Rich Text

(adapted from the official documentation)

License

MIT © awatercolorpen

About

typescript library to converter message between unity rich text and html standard rich text.

License:MIT License


Languages

Language:TypeScript 100.0%