JSPM

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

Fast, flexible, and lean implementation of BBcode parser with plugins

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

const bbob = require('@bbob/core');
const render = require('@bbob/html');
const presetHTML5 = require('@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>