gw2-tooltip-html
Version:
Parses markup text from Guild Wars 2 tooltips to html.
32 lines (20 loc) • 996 B
Markdown
[![version][npm-badge]][npm]
[![license][license-badge]](LICENSE)
[![build][build-badge]][build]
[]: https://img.shields.io/npm/v/gw2-tooltip-html.svg?style=flat-square
[]: https://img.shields.io/github/license/darthmaim/gw2-tooltip-html.svg?style=flat-square
[]: https://img.shields.io/github/actions/workflow/status/darthmaim/gw2-tooltip-html/ci.yml?style=flat-square
[]: https://www.npmjs.com/package/gw2-tooltip-html
[]: https://github.com/darthmaim/gw2-tooltip-html/actions/workflows/ci.yml
Parses markup text from Guild Wars 2 tooltips to html.
Install this module with your favorite package manager, e.g. `npm install gw2-tooltip-html`.
```javascript
import { format } from 'gw2-tooltip-html';
format('<c=@abilitytype>Heat Threshold</c>')
// ⇒ '<span class="color-format--abilitytype">Heat Threshold</span>'
```
**gw2-tooltip-html** is licensed under the [MIT License](LICENSE).