-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
* chore: update readme to latest API * chore: release 2.9.0
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"lerna": "2.11.0", | ||
"version": "2.8.3", | ||
"version": "2.9.0", | ||
"packages": [ | ||
"benchmark", | ||
"scripts", | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,4 @@ | ||
# @bbob/core | ||
[](https://packagephobia.now.sh/result?p=@bbob/core) [](https://snyk.io/test/github/JiLiZART/bbob?targetFile=packages%2Fbbob-core%2Fpackage.json) | ||
|
||
## Usage | ||
|
||
```js | ||
import bbob from '@bbob/core' | ||
import { render } from '@bbob/html' | ||
import presetHTML5 from '@bbob/preset-html5' | ||
const code = `[i]Text[/i]`; | ||
|
||
const html = bbob(presetHTML5()).process(code, { render }).html; | ||
|
||
console.log(html); // <span style="font-style: italic;">Text</span> | ||
``` | ||
> Internal package for @bbob/html @bbob/react @bbob/vue2 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> | ||
``` |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.