typescript library to converter message between unity rich text and html standard rich text.
- 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);
pnpm install
- build
pnpm build
- test
pnpm test
(adapted from the official documentation)
MIT © awatercolorpen