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:
@@ -1,2 +1,17 @@
|
||||
#@bbob/html
|
||||
# @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>
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user