mirror of
https://github.com/tenrok/BBob.git
synced 2026-06-14 18:42:24 +03:00
feat(html): @bbob/html now can be used without @bbob/core
This commit is contained in:
@@ -1,11 +1,6 @@
|
||||
import core from '@bbob/core'
|
||||
import {render} from '../src';
|
||||
import toHTML, {render} from '../src';
|
||||
|
||||
const process = (input, params) => {
|
||||
const ast = core().process(input).tree;
|
||||
|
||||
return render(ast, params)
|
||||
};
|
||||
const process = (input, params) => toHTML(input, [], params);
|
||||
|
||||
describe('@bbob/html', () => {
|
||||
test('render bbcode tag with single param as html tag', () => {
|
||||
|
||||
Reference in New Issue
Block a user