mirror of
https://github.com/tenrok/BBob.git
synced 2026-05-27 14:45:03 +03:00
a05e5cef07
* chore: update readme to latest API * chore: release 2.9.0
18 lines
661 B
Markdown
18 lines
661 B
Markdown
# @bbob/html
|
|
[](https://packagephobia.now.sh/result?p=@bbob/html) [](https://snyk.io/test/github/JiLiZART/bbob?targetFile=packages%2Fbbob-html%2Fpackage.json)
|
|
|
|
> Converts @bbob/parser AST tree to html
|
|
|
|
```shell
|
|
npm i @bbob/html @bbob/preset-html5
|
|
```
|
|
|
|
```js
|
|
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>
|
|
```
|