Skip to content

AWaterColorPen/unity-rich-text-converter

Repository files navigation

unity-richtext-converter

Node.js Package

a 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();

// convert HTML to unity rich text
const unitytext = converter.html2unity(text);
// convert unity rich text to HTML
const htmltext = converter.unity2html(text);

Development

  • install env, please make sure node.js installed
npm install
  • build
npm run build
  • run test
npm run test

Unity Rich Text

(adapted from the official documentation)

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, please feel free to open an issue or submit a pull request.

License

MIT © awatercolorpen

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •