1 | # @bbob/core
|
2 |
|
3 | ## Usage
|
4 |
|
5 | ```js
|
6 | import bbob from '@bbob/core'
|
7 | import { render } from '@bbob/html'
|
8 | import presetHTML5 from '@bbob/preset-html5'
|
9 | const code = `[i]Text[/i]`;
|
10 |
|
11 | const html = bbob(presetHTML5()).process(code, { render }).html;
|
12 |
|
13 | console.log(html); // <span style="font-style: italic;">Text</span>
|
14 | ```
|