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:
@@ -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>
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user