mirror of
https://github.com/tenrok/BBob.git
synced 2026-05-27 14:45:03 +03:00
c4a88e5036
* fix(parser): fix issue with escaping backslashes when enableEscapeTags is set (#20) there is a bug in the lexer where when enableEscapeTags is set, backslashes are not always escaped (ie. \\[b] is treated as an escaped tag, rather than a literal backslash, and then a tag). * chore: v2.5.1
@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>