JSPM

  • Created
  • Published
  • Downloads 30611
  • Score
    100M100P100Q149121F
  • License MIT

⚡️Blazing fast BBCode transforming and parsing tool in pure javascript, no dependencies

Package Exports

  • @bbob/core

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@bbob/core) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@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>