mirror of
https://github.com/tenrok/BBob.git
synced 2026-06-17 19:21:20 +03:00
refactor(*): convert to babel and generation to lib, es, dist folders (#2)
* refactor(*): convert to babel and generation to lib, es, dist * chore(*): remove generated files * fix(*): lint run command
This commit is contained in:
committed by
GitHub
parent
d22a2895a4
commit
32a7fb51da
@@ -4,10 +4,11 @@
|
||||
|
||||
```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).html;
|
||||
const html = bbob([presetHTML5()]).process(code, { render }).html;
|
||||
|
||||
console.log(html); // <span style="font-style: italic;">Text</span>
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user