2
0
mirror of https://github.com/tenrok/BBob.git synced 2026-06-20 20:00:33 +03:00

chore(core): string node walk plugin test

This commit is contained in:
Nikolay Kostyurin
2018-09-24 00:39:13 +02:00
parent b49b7435da
commit ee29d499e5
3 changed files with 42 additions and 5 deletions
+4 -4
View File
@@ -3,12 +3,12 @@
## Usage
```js
const bbob = require('@bbob/core');
const render = require('@bbob/html');
const presetHTML5 = require('@bbob/preset-html5');
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;
const html = bbob(presetHTML5()).process(code, { render }).html;
console.log(html); // <span style="font-style: italic;">Text</span>
```