DasRed/js-bbcode-parser

Can't create my own BBCodes (create is not a function)

Closed this issue ยท 2 comments

Hi.
i'm using vue and want to create my own BBCodes for [quote=name;date;id]content[/quote]
but when i try to create parser using the example
const parser = bbCodeParser.create({ '\\[br\\]': '<br>' });
it get error in console

"TypeError: js_bbcode_parser__WEBPACK_IMPORTED_MODULE_5__.default.create is not a function"

anyone can help me? thank you

The documentation contains a old way to create an own instance. I fixed that and provide a better example, how to create your own BBCode Parser

๐ŸŽ‰ This issue has been resolved in version 3.0.2 ๐ŸŽ‰

The release is available on GitHub release

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€