Neptunium, Promethium, Manganese

    @bbob/preset

    2.7.0 • 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

    Install

    npm i @bbob/preset

    DownloadsWeekly Downloads

    668

    Version

    2.7.0

    License

    MIT

    Unpacked Size

    12.3 kB

    Total Files

    9

    Last publish

    Collaborators

    • jilizart