bbcode-to-react icon indicating copy to clipboard operation
bbcode-to-react copied to clipboard

No way to set the allowed/default tags.

Open StrawberryBunny opened this issue 7 years ago • 2 comments

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.

StrawberryBunny avatar Apr 06 '17 01:04 StrawberryBunny

import { Parser } from 'bbcode-to-react';

const parser = new Parser(yourTags)

JimLiu avatar Nov 07 '17 04:11 JimLiu

@StrawberryBunny https://github.com/JimLiu/bbcode-to-react/blob/91525b2707d5a53ab680f195800f3d9a99113b23/src/parser.js#L9

serusko avatar Jan 11 '19 09:01 serusko