@bbob/preset
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/bbob__preset package

3.0.2 • Public • Published

#@bbob/preset Base function for create presets to process bbcode AST to HTML or Framework specific tags

Install

npm i @bbob/preset

API

For plain HTML

import { createPreset } from '@bbob/core'

import { createPreset } from '@bbob/preset'

const options = {
    onlyAllowTags: ['url', 'h'],
    onError: (err) => console.warn(err.message, err.lineNumber, err.columnNumber)
};
const pre = parse('[url=https://github.com]hello world![/url]', options)

Usage

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 3.0.2
    1,462
    • latest
  • 2.8.3
    0
    • 0.0.0-0d9da27a

Version History

Package Sidebar

Install

npm i @bbob/preset

Weekly Downloads

2,384

Version

3.0.2

License

MIT

Unpacked Size

7.52 kB

Total Files

7

Last publish

Collaborators

  • jilizart