@bbob/html
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/bbob__html package

3.0.2 • Public • Published

@bbob/html

install size Known Vulnerabilities

Converts @bbob/parser AST tree to html

npm i @bbob/html @bbob/preset-html5
import bbobHTML from '@bbob/html'
import presetHTML5 from '@bbob/preset-html5'

const processed = bbobHTML(`[i]Text[/i]`, presetHTML5())

console.log(processed); // <span style="font-style: italic;">Text</span>

Readme

Keywords

Package Sidebar

Install

npm i @bbob/html

Weekly Downloads

2,528

Version

3.0.2

License

MIT

Unpacked Size

11.7 kB

Total Files

7

Last publish

Collaborators

  • jilizart