2
0
mirror of https://github.com/tenrok/BBob.git synced 2026-05-30 15:24:05 +03:00
Files
bbob/packages/bbob-core
Nikolay Kostyurin 2ee5141d8e feat: update all deps versions, move from babel to swc
- move all package commands to scripts/pkg-task
- jest now uses swc
- rollup now uses swc
- move all benchmark packages to benchmark/package.json
2021-10-17 19:57:00 +02:00
..
2020-01-22 20:25:42 +02:00
2021-05-19 23:00:30 +02:00

@bbob/core

Usage

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;

console.log(html); // <span style="font-style: italic;">Text</span>