bbcode-to-react
bbcode-to-react copied to clipboard
No way to set the allowed/default tags.
The only way I see to set the allowed/default tags is via Parser's constructor but the parser instance is created as module.exports in index.js leaving no way to change them.
Some way to clear the list of tags so only those we register work would be ideal.
import { Parser } from 'bbcode-to-react';
const parser = new Parser(yourTags)
@StrawberryBunny https://github.com/JimLiu/bbcode-to-react/blob/91525b2707d5a53ab680f195800f3d9a99113b23/src/parser.js#L9