2
0
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:
Nikolay Kostyurin
2018-09-09 23:55:28 +02:00
committed by GitHub
parent d22a2895a4
commit 32a7fb51da
76 changed files with 930 additions and 10174 deletions
+2 -1
View File
@@ -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>
```