Skip to content

LemonNekoGH/unity-rich-text-converter

 
 

Repository files navigation

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
# or
yarn add unity-richtext-converter
# or
pnpm add 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 and pnpm installed
pnpm install
  • build
pnpm build
  • test
pnpm 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.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 98.3%
  • JavaScript 1.7%