2
0
mirror of https://github.com/tenrok/BBob.git synced 2026-06-14 18:42:24 +03:00

chore(release): publish v2.9.0 (#170)

* chore: update readme to latest API

* chore: release 2.9.0
This commit is contained in:
Nikolay Kost
2023-01-29 17:55:46 +02:00
committed by GitHub
parent 19e8dd659e
commit a05e5cef07
41 changed files with 281 additions and 99 deletions
+16 -1
View File
@@ -1,2 +1,17 @@
#@bbob/html
# @bbob/html
[![install size](https://packagephobia.now.sh/badge?p=@bbob/html)](https://packagephobia.now.sh/result?p=@bbob/html) [![Known Vulnerabilities](https://snyk.io/test/github/JiLiZART/bbob/badge.svg?targetFile=packages%2Fbbob-html%2Fpackage.json)](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>
```