mirror of
https://github.com/tenrok/BBob.git
synced 2026-06-08 17:22:26 +03:00
32a7fb51da
* refactor(*): convert to babel and generation to lib, es, dist * chore(*): remove generated files * fix(*): lint run command
15 lines
324 B
Markdown
15 lines
324 B
Markdown
# @bbob/core
|
|
|
|
## Usage
|
|
|
|
```js
|
|
const bbob = require('@bbob/core');
|
|
const render = require('@bbob/html');
|
|
const presetHTML5 = require('@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>
|
|
```
|